Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
Updates readme
Browse files Browse the repository at this point in the history
Add example template sensor to break out temperature data into own
sensor.
  • Loading branch information
robmarkcole committed Dec 9, 2017
1 parent 3f10e5d commit 2875390
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ Hue:
- sensor.robins_iphone
```

Temperature, light level and other data in the sensor attributes can be broken out into their own sensor using a template sensor, for example:

```
- platform: template
sensors:
living_room_temperature:
friendly_name: 'Living room temperature'
value_template: '{{states.sensor.living_room_motion_sensor.attributes.temperature}}'
unit_of_measurement: °C
```

<img src="https://github.com/robmarkcole/Hue-sensors-HASS/blob/master/hue.png">

0 comments on commit 2875390

Please sign in to comment.