Añadidos controles de tiempo

DarkSky / Station / OpenWeather
This commit is contained in:
dfcarvajal
2019-06-22 15:58:11 +00:00
parent c47208442e
commit 70075e635e
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
sensor:
- platform: rest
name: darksky_actual
scan_interval: 600
json_attributes:
- currently
- hourly
- daily
value_template: '{{ value_json["currently"].summary }}'
resource: !secret darksky_actual

View File

@@ -0,0 +1,3 @@
sensor:
- platform: season
type: astronomical

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