FIX loging binary_sensor

This commit is contained in:
dfcarvajal
2019-07-06 11:05:16 +00:00
parent 93d063cae5
commit 350de3ab37
24 changed files with 136 additions and 63 deletions

View File

@@ -0,0 +1,17 @@
sensor:
- platform: rest
name: openweather_coslada
scan_interval: 60
json_attributes:
- main
- weather
value_template: '{{ value_json["weather"][0]["description"].title() }}'
resource: !secret openweather_coslada
- platform: template
sensors:
temperatura_exterior:
friendly_name: 'Temperatura Exterior'
value_template: '{{states.sensor.openweather_coslada.attributes.main["temp"]}}'
unit_of_measurement: 'ºC'
entity_id: sensor.openweather_coslada