Añadidos controles de tiempo
DarkSky / Station / OpenWeather
This commit is contained in:
		
							
								
								
									
										10
									
								
								packages/sensor/tiempo/darksky.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								packages/sensor/tiempo/darksky.yaml
									
									
									
									
									
										Normal 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 | ||||
							
								
								
									
										3
									
								
								packages/sensor/tiempo/estaciones.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								packages/sensor/tiempo/estaciones.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| sensor: | ||||
|   - platform: season | ||||
|     type: astronomical | ||||
							
								
								
									
										17
									
								
								packages/sensor/tiempo/openweather.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								packages/sensor/tiempo/openweather.yaml
									
									
									
									
									
										Normal 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 | ||||
		Reference in New Issue
	
	Block a user
	 dfcarvajal
					dfcarvajal