Red dimmer: notification with brightness of 0?

I looked at the notification calculator and noticed that 0 is not allowed as a brightness level. I downloaded and modified and ran the code locally to be able to calculate the notification string for brightness of 0 and, as I might have expected, the switch didn’t respect that value. Brightness of 10 (or 1 in the calculator) is fine, but 0 isn’t allowed by the firmware it seems.

So, can the firmware be changed to allow notifications with a brightness of 0?

My use case: For one switch, I want to set the LED bar to be 20% when off normally, but 0% when off during the night. For that reason, I’ve been avoiding setting param 15 (LED strip intensity (when OFF)) to 0. I’m realizing as I type this I could set that param to 0, then use a “notification” to set it to 20 during the day. I think if I turned the switch on and off during the day, though, the notification would be cleared? Or I’d hit some other roadblocks. Other ideas welcome! Trying to make the room as dark as possible at night.

Thanks!

I had the exact same issue and resolved it by setting param 15 to 0 when my “mode” is sleep and back to 10 (or 1?) when my morning routine runs (when it changes FROM “Sleep” mode).

There are a ton of ways of accomplishing it, but I use HA and Node Red:

[{"id":"285988e9.c1b198","type":"tab","label":"Inovelli Bar Brightness Sleep Off","disabled":false,"info":""},{"id":"24363e41533a69f6","type":"server-state-changed","z":"285988e9.c1b198","name":"Mode","server":"86db4bb5.5e7458","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.mode","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":70,"y":300,"wires":[["fb4714093a8b6aa4"]]},{"id":"fb4714093a8b6aa4","type":"switch","z":"285988e9.c1b198","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Sleep","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":230,"y":300,"wires":[["0ecfcce7d140b339","6a7a2c8ecd0ddad1","b09dac5e0cb0b2a7"],["b2b0a42ef4514f40","73f416a1cf937b3f","419e2913c7ffb336"]]},{"id":"8d3aa52a58268381","type":"api-call-service","z":"285988e9.c1b198","name":"Dimmer Multicast","server":"86db4bb5.5e7458","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"multicast_set_value","entityId":"light.dining_room_dimmer_current_value, light.dining_room_track_dimmer_current_value, light.guest_bathroom_dimmer_current_value, light.guest_bathroom_sconces_dimmer_current_value, light.guest_bathroom_shower_dimmer_current_value, light.living_room_dimmer_current_value, light.living_room_entry_dimmer_current_value, light.living_room_hallway_dimmer_current_value, light.master_bathroom_dimmer_current_value, light.master_bathroom_shower_dimmer, light.master_bedroom_dimmer_current_value, light.master_hallway_dimmer_current_value, light.upstairs_hallway_dimmer_current_value, light.upstairs_main_hallway_dimmer_current_value","data":"{\"command_class\":{{command_class}},\"property\":{{property}},\"value\":\"{{value}}\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":770,"y":120,"wires":[[]]},{"id":"0ecfcce7d140b339","type":"change","z":"285988e9.c1b198","name":"Dimmer to 0%","rules":[{"t":"set","p":"command_class","pt":"msg","to":"112","tot":"num"},{"t":"set","p":"property","pt":"msg","to":"15","tot":"num"},{"t":"set","p":"value","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":80,"wires":[["8d3aa52a58268381"]]},{"id":"b2b0a42ef4514f40","type":"change","z":"285988e9.c1b198","name":"Dimmer to 10%","rules":[{"t":"set","p":"command_class","pt":"msg","to":"112","tot":"num"},{"t":"set","p":"property","pt":"msg","to":"15","tot":"num"},{"t":"set","p":"value","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":160,"wires":[["8d3aa52a58268381"]]},{"id":"de8f5c59daa77a32","type":"api-call-service","z":"285988e9.c1b198","name":"Fan Light Multicast","server":"86db4bb5.5e7458","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"multicast_set_value","entityId":"fan.guest_bedroom_fan_current_value, fan.kendrick_bedroom_fan_current_value, fan.living_room_fan_current_value","data":"{\"command_class\":{{command_class}},\"property\":{{property}},\"value\":\"{{value}}\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":770,"y":300,"wires":[[]]},{"id":"6a7a2c8ecd0ddad1","type":"change","z":"285988e9.c1b198","name":"Fan Light to 0%","rules":[{"t":"set","p":"command_class","pt":"msg","to":"112","tot":"num"},{"t":"set","p":"property","pt":"msg","to":"22","tot":"num"},{"t":"set","p":"value","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":260,"wires":[["de8f5c59daa77a32"]]},{"id":"73f416a1cf937b3f","type":"change","z":"285988e9.c1b198","name":"Fan Light to 10%","rules":[{"t":"set","p":"command_class","pt":"msg","to":"112","tot":"num"},{"t":"set","p":"property","pt":"msg","to":"22","tot":"num"},{"t":"set","p":"value","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":340,"wires":[["de8f5c59daa77a32"]]},{"id":"5e7a8650c459de8a","type":"api-call-service","z":"285988e9.c1b198","name":"Fan Multicast","server":"86db4bb5.5e7458","version":3,"debugenabled":false,"service_domain":"zwave_js","service":"multicast_set_value","entityId":"fan.guest_bedroom_fan_current_value, fan.kendrick_bedroom_fan_current_value, fan.living_room_fan_current_value","data":"{\"command_class\":{{command_class}},\"property\":{{property}},\"value\":\"{{value}}\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":750,"y":480,"wires":[[]]},{"id":"b09dac5e0cb0b2a7","type":"change","z":"285988e9.c1b198","name":"Fan to 0%","rules":[{"t":"set","p":"command_class","pt":"msg","to":"112","tot":"num"},{"t":"set","p":"property","pt":"msg","to":"23","tot":"num"},{"t":"set","p":"value","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":440,"wires":[["5e7a8650c459de8a"]]},{"id":"419e2913c7ffb336","type":"change","z":"285988e9.c1b198","name":"Fan to 10%","rules":[{"t":"set","p":"command_class","pt":"msg","to":"112","tot":"num"},{"t":"set","p":"property","pt":"msg","to":"23","tot":"num"},{"t":"set","p":"value","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":520,"wires":[["5e7a8650c459de8a"]]},{"id":"4acb542b61f72ae7","type":"inject","z":"285988e9.c1b198","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Home","payloadType":"str","x":80,"y":380,"wires":[["fb4714093a8b6aa4"]]},{"id":"86db4bb5.5e7458","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
3 Likes

Thank you!! It worked! Figured it out in Hubitat in a Rule Machine rule. Took a while to figure out how you add parameters as integers one by one there, not as a string, but got the hang of it. Tested by manually changing modes. Looking forward to seeing this in action this evening.

image

1 Like