I have a sonoff T1 switch that I’m using to control a Wemo Dimmer Switch. Is it possible to have the led on the T1 follow that state of the dimmer switch (on/off)?
I figured out my own question. Just not sure if it is the most elegant.
I’m using node red so i’ll post the flow below.
Top flow turns the wemo light on and off using the T1 switch.
Bottom flow checks the state of the light and turns the T1 switch on or off.
[{“id”:“3a7260f3.4a361”,“type”:“server-state-changed”,“z”:“578c3114.d033c”,“name”:“LRoomSwitch1”,“server”:“cbbf6ce3.4f5eb”,“entityidfilter”:“switch.lroom_switch1”,“entityidfiltertype”:“substring”,“outputinitially”:false,“state_type”:“str”,“haltifstate”:“”,“halt_if_type”:“”,“halt_if_compare”:“is”,“outputs”:1,“x”:120,“y”:460,“wires”:[[“4083b80a.f98348”]]},{“id”:“ffa2add.66b075”,“type”:“api-call-service”,“z”:“578c3114.d033c”,“name”:“Turn On LivingRoom Light”,“server”:“cbbf6ce3.4f5eb”,“service_domain”:“homeassistant”,“service”:“turn_on”,“data”:“{"entity_id":"light.living_room"}”,“render_data”:false,“mergecontext”:“”,“output_location”:“payload”,“output_location_type”:“msg”,“x”:1170,“y”:440,“wires”:[]},{“id”:“208003.ac800ffe”,“type”:“api-call-service”,“z”:“578c3114.d033c”,“name”:“LivingRoom T1 On”,“server”:“cbbf6ce3.4f5eb”,“service_domain”:“switch”,“service”:“turn_on”,“data”:“{"entity_id":"switch.lroom_switch1"}”,“render_data”:false,“mergecontext”:“”,“output_location”:“payload”,“output_location_type”:“msg”,“x”:1150,“y”:560,“wires”:[]},{“id”:“3141adf7.e8ed82”,“type”:“api-call-service”,“z”:“578c3114.d033c”,“name”:“LivingRoom T1 Off”,“server”:“cbbf6ce3.4f5eb”,“service_domain”:“switch”,“service”:“turn_off”,“data”:“{"entity_id":"switch.lroom_switch1"}”,“render_data”:false,“mergecontext”:“”,“output_location”:“payload”,“output_location_type”:“msg”,“x”:1150,“y”:600,“wires”:[]},{“id”:“f6441cb5.fc331”,“type”:“switch”,“z”:“578c3114.d033c”,“name”:“On/Off”,“property”:“payload”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“on”,“vt”:“str”},{“t”:“eq”,“v”:“off”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:2,“x”:830,“y”:580,“wires”:[[“208003.ac800ffe”],[“3141adf7.e8ed82”]]},{“id”:“4083b80a.f98348”,“type”:“switch”,“z”:“578c3114.d033c”,“name”:“On/Off”,“property”:“payload”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“on”,“vt”:“str”},{“t”:“eq”,“v”:“off”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:2,“x”:830,“y”:460,“wires”:[[“ffa2add.66b075”],[“cdf0302e.4b43b”]]},{“id”:“cdf0302e.4b43b”,“type”:“api-call-service”,“z”:“578c3114.d033c”,“name”:“Turn Off LivingRoom Light”,“server”:“cbbf6ce3.4f5eb”,“service_domain”:“homeassistant”,“service”:“turn_off”,“data”:“{"entity_id":"light.living_room"}”,“render_data”:false,“mergecontext”:“”,“output_location”:“payload”,“output_location_type”:“msg”,“x”:1170,“y”:480,“wires”:[]},{“id”:“4ed6c6d2.0842a8”,“type”:“poll-state”,“z”:“578c3114.d033c”,“name”:“LivingRoom Light”,“server”:“cbbf6ce3.4f5eb”,“updateinterval”:“10”,“outputinitially”:false,“outputonchanged”:true,“entity_id”:“light.living_room”,“state_type”:“str”,“halt_if”:“”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:1,“x”:120,“y”:580,“wires”:[[“f6441cb5.fc331”]]},{“id”:“cbbf6ce3.4f5eb”,“type”:“server”,“z”:“”,“name”:“Home Assistant”,“legacy”:false}]