nikkow / node-red-contrib-tahoma

Node-RED module to control a Somfy Tahoma box (Roller shutters...). Used for home automation flows.
Apache License 2.0
19 stars 11 forks source link

Example Node Red Switch Config #3

Closed Ed2010 closed 6 years ago

Ed2010 commented 6 years ago

Hi,

how can i use a switch to open or close the Tahoma?

Can you give me an Example?

Thanks.

nikkow commented 6 years ago

Hi @Ed2010,

Can you provide more details about what you are trying to achieve? Like a use case? I will then be able to help you :)

Thanks!

Ed2010 commented 6 years ago

Hi @Nikkow,

thank you for your fast response! my goal is to operate the shutters via a touch screen and a node-red switch. The touch screen (NEXTION) hangs on an ESP8266. MQTT is running on the ESP. In the node red, I would like to control the roller shutter via MQTT or Switch.

bildschirmfoto 2018-03-02 um 17 25 36

Unfortunately, I do not know where to set up the action

Actions Currently, only a few commands are understood by this node. The possible values for the action property are:

Where must i set: open: This will open the device (door, blind...) close: This will close the device

nikkow commented 6 years ago

Hi @Ed2010,

The Tahoma node expects to receive an object from the parent node (the one that is connected to the Tahoma node input). This object must be set in the msg.payload variable by the parent node. For example, if you need to close your blinds, the msg.payload you must send to the Tahoma node will look like this:

{ "action":"close" }

My setup looks like this:

capture d ecran 2018-03-02 a 18 40 31

capture d ecran 2018-03-02 a 18 44 54

Let's say I want to close the blinds, here is the chain that is going to be triggered:

I hope this helped :)

Ed2010 commented 6 years ago

Hi @nikkow

great, it works! Thanks a lot!!!

I needed something to implement your solution until I realized "Change" must be from type "json".

Now it works with a switch. The mqtt will i´m testing now.