Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sfgabe authored Mar 24, 2020
1 parent d858b1c commit db6306a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RentersLightSwitch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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__
```
Expand All @@ -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
Expand Down

0 comments on commit db6306a

Please sign in to comment.