Node red master rules?

Hello,
I Have created a simple flow that lights on my lights via node red pulled by mosquitto mqtt.

But now i cannot use my physical switch becausenode red has control on it like it it was super master god.

What i am missing ?

You need to give us a bit more detail to work on as your description is very vague.

Post a flow if you can... but first read how to do that.

Thanx but i dont htink i have json flow anyway, here is my flow.
Again, when i switch off on physical switch, light does not switch off and does not switch on, it s working only on node red.
That is propbably a common problem

If you select the nodes that you have in the screenshot, and then export the flow, you will be able to paste it here (after reading the link which @dynamicdave posted above).
Then we will be in a better position to help you.

Many thanks for having thought me that.

Here is the xport

[{"id":"7fd7cdf0.caf594","type":"mqtt in","z":"76cadfed.d480b","name":"","topic":"homie/homey-topic/lumiere-pierre/onoff","qos":"2","datatype":"auto","broker":"1fbfef54.67f911","x":200,"y":260,"wires":[["e75c7b23.eb6008"]]},{"id":"e75c7b23.eb6008","type":"ui_switch","z":"76cadfed.d480b","name":"","label":"switchtt","tooltip":"","group":"c03090cf.c701","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"homie/homey-topic/lumiere-pierre/onoff/set","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":500,"y":240,"wires":[["22d9f121.1a6c9e"]]},{"id":"22d9f121.1a6c9e","type":"mqtt out","z":"76cadfed.d480b","name":"tt","topic":"homie/homey-topic/lumiere-pierre/onoff/set","qos":"","retain":"","broker":"1fbfef54.67f911","x":650,"y":240,"wires":[]},{"id":"5e0418fb.d7a988","type":"mqtt in","z":"76cadfed.d480b","name":"","topic":"#","qos":"2","datatype":"auto","broker":"1fbfef54.67f911","x":140,"y":160,"wires":[["612acb59.79f7f4"]]},{"id":"612acb59.79f7f4","type":"debug","z":"76cadfed.d480b","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":380,"y":140,"wires":[]},{"id":"1fbfef54.67f911","type":"mqtt-broker","z":"","name":"","broker":"192.168.1.24","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"c03090cf.c701","type":"ui_group","z":"","name":"eclairage","tab":"f57a796f.da93d8","order":1,"disp":true,"width":"6","collapse":false},{"id":"f57a796f.da93d8","type":"ui_tab","z":"","name":"Dashboard","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

OK i will try on reddit forum hoping to find answer, because it s kind of crazy thing

Let's assume that the output from the homie/homey-topic/lumiere-pierre/onoff MQTT node will be a string "true" or "false" (not Boolean true of false).

In your switch node you currently are testing for a Boolean value, so you need to change it to expect a string value, like;
switch

Also as you are specifying the MQTT topic in the switch node, there's no need to also set it in the MQTT node.

Also you should have the switch node configured with pass through disabled and to show the state of the input, otherwise you will get an mqtt loop.

image

1 Like

All solved now thank you both of you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.