diff --git a/RentersLightSwitch/README.md b/RentersLightSwitch/README.md index 93f0d76..6adf6f6 100644 --- a/RentersLightSwitch/README.md +++ b/RentersLightSwitch/README.md @@ -53,6 +53,7 @@ __Switch for light in switches.yaml__ payload_off: "3" value_template: '{{ value_json.state }}' ``` +*Note: Home assistant sends MQTT messages as strings, which unfortunatly this JSON library doesnt parse. You may need to adjust for your switches [with this handy chart](https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html). For example, my switch works with ON at 51 degrees (ascii payload "3") and OFF at 80 degrees (ascii payload "P").* __Sensor for motion sensor in binary_sensor.yaml__ ``` @@ -65,9 +66,8 @@ __Sensor for motion sensor in binary_sensor.yaml__ device_class: motion ``` -*Note: Home assistant sends MQTT messages as strings, which unfortunatly this JSON library doesnt parse. You may need to adjust for your switches [with this handy chart](https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html). For example, my switch works with ON at 51 degrees (ascii payload "3") and OFF at 80 degrees (ascii payload "P").* +__Automation for motion detect light in automations.yaml__ -__Automation for motion detect light__ I decided to keep the motion detection and the switch as two separate entities for more control, but if you want a basic motion triggered light add this to automations.yaml. ``` - alias: switch_motion_trigger_on