Node Red Master Class #4 Dimming (Part 1)

In this video I’ll show you how to use Home Assistant and Node Red to control dimming of a Zigbee controlled light from a Zigbee remote from IKEA called Symfonisk.

You’ll see how to Dim up and Dim down using the value stored within the Rotary Remote. If you don’t have one of these, don’t worry, you might be better off checking out Master Class 5 which uses a more standard remote with a hold function to dim up/down.

Sequence from this video:

[{"id":"75de88bf.1e2558","type":"server-state-changed","z":"ca13c281.83306","name":"Rotary Action","server":"22f5da40.d3e236","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.rotary1_action","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,"x":190,"y":100,"wires":[["5e29dd7e.8fc274"]]},{"id":"5e29dd7e.8fc274","type":"switch","z":"ca13c281.83306","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"play_pause","vt":"str"},{"t":"eq","v":"skip_forward","vt":"str"},{"t":"eq","v":"skip_backward","vt":"str"},{"t":"eq","v":"rotate_right","vt":"str"},{"t":"eq","v":"rotate_left","vt":"str"},{"t":"eq","v":"rotate_stop","vt":"str"}],"checkall":"true","repair":false,"outputs":6,"x":350,"y":120,"wires":[["d61477e6.797f48"],[],[],[],[],[]]},{"id":"d61477e6.797f48","type":"api-current-state","z":"ca13c281.83306","name":"bedroom light state","server":"22f5da40.d3e236","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.bedroom1_light","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":550,"y":100,"wires":[["3c1e37aa.2bc218"],["841c6c3c.7efcc"]]},{"id":"3c1e37aa.2bc218","type":"api-call-service","z":"ca13c281.83306","name":"Light Off","server":"22f5da40.d3e236","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.bedroom1_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":100,"wires":[[]]},{"id":"fb6361ae.983f3","type":"api-call-service","z":"ca13c281.83306","name":"Light On","server":"22f5da40.d3e236","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.bedroom1_light","data":"{    \"entity_id\": \"light.bedroom_1_light\",    \"brightness\": {{payload}}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":980,"y":160,"wires":[[]]},{"id":"5c88c67c.8cb9c8","type":"server-state-changed","z":"ca13c281.83306","name":"Rotary Brightness","server":"22f5da40.d3e236","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.rotary1_brightness","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,"x":340,"y":200,"wires":[["108a2ecb.ced041"]]},{"id":"841c6c3c.7efcc","type":"api-current-state","z":"ca13c281.83306","name":"bedroom light state","server":"22f5da40.d3e236","version":1,"outputs":2,"halt_if":"0","halt_if_type":"num","halt_if_compare":"gt","override_topic":false,"entity_id":"sensor.rotary1_brightness","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":790,"y":160,"wires":[["fb6361ae.983f3"],[]]},{"id":"108a2ecb.ced041","type":"api-current-state","z":"ca13c281.83306","name":"bedroom light state","server":"22f5da40.d3e236","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.bedroom1_light","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":550,"y":160,"wires":[["841c6c3c.7efcc"],[]]},{"id":"22f5da40.d3e236","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]