Replies: 1 comment 3 replies
-
Hi @Anjerlaan, Alternatively there is another property you can use: It basically sets the brightness to a preferred value each time the light turns off. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Andrei,
I am currently using the Controlicz service (i.c.w. Zigbee2mqtt/Domoticz) to control devices in Google Home.
However this service stops at the end of 2023, so I am investigating Smart Nora as an alternative service, which looks quite promising.
I have installed the free version and I have created some (working) Node-Red flows with Smart Nora scene buttons to control my AV-Devices in Google Home.
The next step is to create flows to control my Zigbee2mqtt Lights.
Most of them I control with Zigbee2mqtt Groups. Now here I get stuck a bit in Node-Red
I managed to create a flow to control a group with 3 dimmable/color_temp GU10 IKEA lights, but it is not exactly working as I want it:
[{"id":"e97814dc0e728e86","type":"mqtt out","z":"28e4625c5c5f563a","name":"ON/OFF Keuken Licht","topic":"zigbee2mqtt/Keuken_Spots_ct/set","qos":"2","retain":"true","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"3f147321.2d0384","x":920,"y":320,"wires":[]},{"id":"5ffa6b78a8c12c88","type":"noraf-light","z":"28e4625c5c5f563a","devicename":"Test Lamp","lightcolor":false,"brightnesscontrol":true,"commandonlycolor":false,"turnonwhenbrightnesschanges":false,"passthru":false,"errorifstateunchaged":false,"statepayload":false,"brightnessoverride":"","roomhint":"Keuken","name":"Test Lamp","colortype":"hsv","nora":"773b9a6c6371d3c5","topic":"zigbee2mqtt/Keuken_Spots_ct/set","onvalue":"true","onvalueType":"bool","offvalue":"false","offvalueType":"bool","temperaturemin":"2700","temperaturemax":"5500","twofactor":"off","twofactorpin":"","filter":false,"x":310,"y":320,"wires":[["a9086e7438eedd8f","2d510d5eee4e3215"]]},{"id":"80e22004026db947","type":"debug","z":"28e4625c5c5f563a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":870,"y":220,"wires":[]},{"id":"2d510d5eee4e3215","type":"function","z":"28e4625c5c5f563a","name":"toNumber","func":"msg.payload = parseInt(msg.payload,14);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":320,"wires":[["d95f380dae416f41"]]},{"id":"a9086e7438eedd8f","type":"debug","z":"28e4625c5c5f563a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":510,"y":200,"wires":[]},{"id":"d95f380dae416f41","type":"change","z":"28e4625c5c5f563a","name":"Brightness","rules":[{"t":"set","p":"brightness","pt":"flow","to":"payload","tot":"msg"},{"t":"move","p":"payload","pt":"msg","to":"payload.brightness","tot":"msg"},{"t":"set","p":"payload.on","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":320,"wires":[["e97814dc0e728e86","80e22004026db947"]]},{"id":"3f147321.2d0384","type":"mqtt-broker","name":"Zigbee2mqtt","broker":"192.168.1.55","port":"1883","clientid":"","autoConnect":true,"usetls":false,"compatmode":false,"protocolVersion":4,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"773b9a6c6371d3c5","type":"noraf-config","name":"Google","group":"","twofactor":"off","twofactorpin":"","localexecution":true,"structure":"Anjerlaan","storeStateInContext":false,"disableValidationErrors":false,"sendDeviceNameAndLocation":false}]
This flow always turns ON the group with brightness level 100 (ON) or 0 (OFF). (I did not take the conversion to 0/255 into account)
However, if I set the brightness level (voice controlled or slider in Google Home) to a certain level and then turn OFF the Group,
That brightness level is remebered. So if I turn ON the Group again, the last brightness level is used.
But I want to control it this way:
If the group is turned ON, the brightness level should always be a default value
The Light in Google Home must be able to controll the brightness level with either the voice or slider.
I would also like to sent a default color_temp.
I have found NORA-Pre and Post Subflows, which I have tested i.c.w. all Light settings, but I cant figure out how to make this work as I want it to work.
Do you maybe have example flows how to set this up in Node-Red, or is it not possible what I want?
Greetzzz,
Gerben
Beta Was this translation helpful? Give feedback.
All reactions