"SmartNodeRules" concept idea

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
FanOfHue
Normal user
Posts: 22
Joined: 06 Oct 2018, 10:08

"SmartNodeRules" concept idea

#1 Post by FanOfHue » 24 Dec 2018, 15:26

I have started to work on a "SmartNodeRules" idea, further explained here: https://github.com/SmartNodeRules/Documentation/wiki

I just finished creating some prototypes to demonstrate how this could work in my own home and so far it seems to work as planned. A plugin for ESPEasy is also available to let it become a node on this network. The concept has been set with KISS and YAGNI in mind (https://en.wikipedia.org/wiki/You_aren% ... na_need_it)

It could be nice to have a RaspBerryPI edition prototype, but my skills on Linux are mainly non existing. and i don't own a RPI (yet).

Would like to hear if someone else likes the idea. If you already own a fancy Home Automation controller, you likely don't need this. But I only have a simple Hue bridge which is limited to lighting stuff. My older Arduino hardware has now been migrated to this concept and I'm using two shortcuts on my smartphone to control everything. One is the Hue app, the other is a web shortcut to the main page on one of the smartnode units. It looks like i don't need much more than this right now.

User avatar
dynamicdave
Normal user
Posts: 125
Joined: 30 Jan 2017, 20:25
Location: Hampshire, UK
Contact:

Re: "SmartNodeRules" concept idea

#2 Post by dynamicdave » 24 Dec 2018, 16:20

Hi,
That sounds like a brillant idea - how much of it is workable at the moment???

I have a home automation system running on a couple of RPi-3s using Node-RED and MQTT.
Around the house I have a number of WeMos D1 Minis (re-flashed with ESP Easy) that send various readings (temp, humdiity, pressure, switch settings) via MQTT to NR.
I also have a number of SonOff-S20 mains switches that communicate with NR via Tasmota.
Also some Yeelights and Alexa devices that "talk" to my system.

The current system works really well and has been very reliable for a couple of years.

I have a spare RPi, that I use for development work, that I could devote to checking out your SmartNodeRules.

Looking forward to hearing more of your project development.

Kind regards and Happy Christmas from Dynamic Dave in the UK.

User avatar
ThomasB
Normal user
Posts: 309
Joined: 17 Jun 2018, 20:41
Location: USA

Re: "SmartNodeRules" concept idea

#3 Post by ThomasB » 24 Dec 2018, 21:19

I use OpenHab for home control, so I don't require a standalone solution. But there are ESP Easy that would benefit from your concept. So I just stopped by to show my support.

- Thomas

tim
Normal user
Posts: 25
Joined: 05 Dec 2015, 11:24

Re: "SmartNodeRules" concept idea

#4 Post by tim » 28 Dec 2018, 16:53

I'm using ArduinoEasy for a while with Domoticz. Could be nice to have a small webgui with power control buttons to control this unit directly. Maybe in case Domoticz has crashed like it did a while ago when the SD card in the RPI suddenly died.

ArduinoEasy does not have such an option and it seems there's no development on that version anymore because it is listed as archived on the wiki. My Arduino Mega unit has a double relay board attached so i only need 4 buttons.

But can the ArduinoMegaRules version work with Domoticz?
The wiki says that it works without a centralized Home Automation controller, but can't we have both options, so with and or without?

FanOfHue
Normal user
Posts: 22
Joined: 06 Oct 2018, 10:08

Re: "SmartNodeRules" concept idea

#5 Post by FanOfHue » 06 Jan 2019, 16:58

tim wrote:
28 Dec 2018, 16:53
I'm using ArduinoEasy for a while with Domoticz. Could be nice to have a small webgui with power control buttons to control this unit directly. Maybe in case Domoticz has crashed like it did a while ago when the SD card in the RPI suddenly died.

ArduinoEasy does not have such an option and it seems there's no development on that version anymore because it is listed as archived on the wiki. My Arduino Mega unit has a double relay board attached so i only need 4 buttons.

But can the ArduinoMegaRules version work with Domoticz?
The wiki says that it works without a centralized Home Automation controller, but can't we have both options, so with and or without?
Well it could be controlled by anything that can send plain UDP text messages to trigger an event on one of the nodes. I don't know if Domoticz can do that?
Maybe I should update the wiki because it was not intended to work as standalone exclusively.

But http control might also be an option as the webserver is still there for that kind of basic tasks like processing events.

FanOfHue
Normal user
Posts: 22
Joined: 06 Oct 2018, 10:08

Re: "SmartNodeRules" concept idea

#6 Post by FanOfHue » 06 Jan 2019, 17:03

ThomasB wrote:
24 Dec 2018, 21:19
I use OpenHab for home control, so I don't require a standalone solution. But there are ESP Easy that would benefit from your concept. So I just stopped by to show my support.

- Thomas
Thanks for taking the time to respond. I presume that you're using MQTT with OpenHAB? I have a testversion ready that can use both UDP as MQTT as a generic broacast type message bus. Running Mosquitto on Windows, just to verify the workings. Maybe MQTT is a better choice for a message bus, but in case you only have two nodes, you could fallback to bare UDP peer to peer.

But maybe I'm the only one here that thinks that way ? Everyone uses fancy controllers?

FanOfHue
Normal user
Posts: 22
Joined: 06 Oct 2018, 10:08

Re: "SmartNodeRules" concept idea

#7 Post by FanOfHue » 06 Jan 2019, 17:05

dynamicdave wrote:
24 Dec 2018, 16:20
Hi,
That sounds like a brillant idea - how much of it is workable at the moment???

I have a home automation system running on a couple of RPi-3s using Node-RED and MQTT.
Around the house I have a number of WeMos D1 Minis (re-flashed with ESP Easy) that send various readings (temp, humdiity, pressure, switch settings) via MQTT to NR.
I also have a number of SonOff-S20 mains switches that communicate with NR via Tasmota.
Also some Yeelights and Alexa devices that "talk" to my system.

The current system works really well and has been very reliable for a couple of years.

I have a spare RPi, that I use for development work, that I could devote to checking out your SmartNodeRules.

Looking forward to hearing more of your project development.

Kind regards and Happy Christmas from Dynamic Dave in the UK.
I guess that you have also noticed the RPIEasy project? So it's not needed to build something new. But a universal message bus would still be on my wish list to exchange event between multiple IoT platforms.

User avatar
ThomasB
Normal user
Posts: 309
Joined: 17 Jun 2018, 20:41
Location: USA

Re: "SmartNodeRules" concept idea

#8 Post by ThomasB » 06 Jan 2019, 19:58

Everyone uses fancy controllers?
I suspect that many ESPEasy users {that have elaborate home automation} are using fancy controllers. My automation devices utilize Amazon Echo speech and a lot of rules, so OpenHab is essential to me. But your concept is ideal for those that have less demanding applications.

- Thomas

tim
Normal user
Posts: 25
Joined: 05 Dec 2015, 11:24

Re: "SmartNodeRules" concept idea

#9 Post by tim » 10 Jan 2019, 16:21

On Arduino Mega:

Sending this http://<ip>/control?cmd=gpio,12,1

I get this error:

Unknown or restricted command!

Could you have a look at it?

FanOfHue
Normal user
Posts: 22
Joined: 06 Oct 2018, 10:08

Re: "SmartNodeRules" concept idea

#10 Post by FanOfHue » 14 Jan 2019, 15:18

tim wrote:
10 Jan 2019, 16:21
On Arduino Mega:

Sending this http://<ip>/control?cmd=gpio,12,1

I get this error:

Unknown or restricted command!

Could you have a look at it?
That should be solved on github now. In the mean time, a new feature has been added to show nodes in groups. A new command:

Config,Group,<group name>

has been introduced. Th main page now shows a list of groups based on the nodelist. Click on a group to show all nodes within that group.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests