In this video I’ll unbox the brand new Aqara (Xiaomi) Roller Shade Driver RSD-M01. We’ll get review and setup for the first time. See how to pair natively with Home Assistant and setup a flow in Node red to work around a little quirk with status reporting.
Products Shown
Aqara Roller Shade Driver (RSD-M01)
USE CODE: RSDE1KOL for 15% OFF!
Node Red Code:
[{"id":"b283eef3.e91d1","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"1e30cd6f.4eb933","type":"mqtt out","z":"b283eef3.e91d1","name":"","topic":"zigbee2mqtt/kitchenblind/get","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"feb9c094.c52828","x":700,"y":540,"wires":[]},{"id":"3fd1bdc0.7ac682","type":"inject","z":"b283eef3.e91d1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\": \"\"}","payloadType":"json","x":380,"y":540,"wires":[["1e30cd6f.4eb933"]]},{"id":"627ef6ae.9e1ed8","type":"mqtt out","z":"b283eef3.e91d1","name":"","topic":"zigbee2mqtt/kitchenblind/set","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"feb9c094.c52828","x":700,"y":620,"wires":[]},{"id":"3acda0fd.66075","type":"inject","z":"b283eef3.e91d1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\": \"50\"}","payloadType":"json","x":390,"y":620,"wires":[["627ef6ae.9e1ed8"]]},{"id":"894dd45f.8e7fa8","type":"mqtt out","z":"b283eef3.e91d1","name":"","topic":"zigbee2mqtt/kitchenblind/set","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"feb9c094.c52828","x":700,"y":700,"wires":[]},{"id":"585fdeb8.f79f8","type":"inject","z":"b283eef3.e91d1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\": \"OPEN\"}","payloadType":"json","x":400,"y":700,"wires":[["894dd45f.8e7fa8"]]},{"id":"2513a46a.698e0c","type":"mqtt out","z":"b283eef3.e91d1","name":"","topic":"zigbee2mqtt/kitchenblind/set","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"feb9c094.c52828","x":700,"y":760,"wires":[]},{"id":"6daa6c12.ff2244","type":"inject","z":"b283eef3.e91d1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\": \"CLOSE\"}","payloadType":"json","x":400,"y":760,"wires":[["2513a46a.698e0c"]]},{"id":"8f5d39f1.8edba8","type":"mqtt out","z":"b283eef3.e91d1","name":"","topic":"zigbee2mqtt/kitchenblind/set","qos":"2","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"feb9c094.c52828","x":700,"y":820,"wires":[]},{"id":"cb8abc7f.885b2","type":"inject","z":"b283eef3.e91d1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\": \"STOP\"}","payloadType":"json","x":400,"y":820,"wires":[["8f5d39f1.8edba8"]]},{"id":"35308ab1adecf942","type":"schedex","z":"b283eef3.e91d1","name":"","passthroughunhandled":false,"suspended":false,"lat":"51.341696","lon":"-1.9912507","ontime":"sunset","ontopic":"","onpayload":"","onoffset":0,"onrandomoffset":0,"offtime":"sunrise","offtopic":"","offpayload":"","offoffset":0,"offrandomoffset":0,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":120,"y":160,"wires":[["1a0a460735f2cde8"]]},{"id":"9357a9c3eada649a","type":"api-call-service","z":"b283eef3.e91d1","name":"Close Kitchen Blind","server":"22f5da40.d3e236","version":3,"debugenabled":false,"service_domain":"cover","service":"close_cover","entityId":"cover.kitchenblind","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":650,"y":160,"wires":[["e93af7a902be1c82"]]},{"id":"9a04de64797aca06","type":"mqtt out","z":"b283eef3.e91d1","name":"Get Blind Position","topic":"zigbee2mqtt/kitchenblind/get","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"feb9c094.c52828","x":1280,"y":160,"wires":[]},{"id":"e93af7a902be1c82","type":"change","z":"b283eef3.e91d1","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"state\": \"\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":160,"wires":[["6b93154260326488"]]},{"id":"6b93154260326488","type":"delay","z":"b283eef3.e91d1","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":1100,"y":160,"wires":[["9a04de64797aca06"]]},{"id":"dbcbe3143d30ce64","type":"api-call-service","z":"b283eef3.e91d1","name":"Open Kitchen Blind","server":"22f5da40.d3e236","version":3,"debugenabled":false,"service_domain":"cover","service":"open_cover","entityId":"cover.kitchenblind","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":650,"y":220,"wires":[["e93af7a902be1c82"]]},{"id":"95835fac5c6668ae","type":"server-state-changed","z":"b283eef3.e91d1","name":"Remote","server":"22f5da40.d3e236","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.remote_mini_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,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":130,"y":220,"wires":[["ced2075a3f3bf114"]]},{"id":"1a0a460735f2cde8","type":"switch","z":"b283eef3.e91d1","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":350,"y":180,"wires":[["9357a9c3eada649a"],["dbcbe3143d30ce64"]]},{"id":"ced2075a3f3bf114","type":"api-current-state","z":"b283eef3.e91d1","name":"Blind State","server":"22f5da40.d3e236","version":2,"outputs":2,"halt_if":"open","halt_if_type":"str","halt_if_compare":"is","entity_id":"cover.kitchenblind","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":240,"wires":[["9357a9c3eada649a"],["dbcbe3143d30ce64"]]},{"id":"778b4c893c237ee0","type":"server-state-changed","z":"b283eef3.e91d1","name":"Script","server":"22f5da40.d3e236","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"script.kitchenblind","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":130,"y":280,"wires":[["ced2075a3f3bf114"]]},{"id":"feb9c094.c52828","type":"mqtt-broker","name":"local","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"22f5da40.d3e236","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]