mirror of
				https://github.com/thejeffreystone/home-assistant-configuration.git
				synced 2025-10-31 18:38:29 +00:00 
			
		
		
		
	Tweaking the weather sensors
This commit is contained in:
		| @@ -38,9 +38,11 @@ | |||||||
| - platform: mqtt | - platform: mqtt | ||||||
|   name: "Accurite Back Porch Temperature" |   name: "Accurite Back Porch Temperature" | ||||||
|   state_topic: "house/accurite-158/temperature" |   state_topic: "house/accurite-158/temperature" | ||||||
|  |   device_class: temperature | ||||||
| - platform: mqtt | - platform: mqtt | ||||||
|   name: "Accurite Back Porch Humidity" |   name: "Accurite Back Porch Humidity" | ||||||
|   state_topic: "house/accurite-158/humidity" |   state_topic: "house/accurite-158/humidity" | ||||||
|  |  | ||||||
| # - platform: mqtt | # - platform: mqtt | ||||||
| #   name: "Accurite Back Porch Status" | #   name: "Accurite Back Porch Status" | ||||||
| #   state_topic: "house/accurite-158/status" | #   state_topic: "house/accurite-158/status" | ||||||
| @@ -56,6 +58,7 @@ | |||||||
| - platform: mqtt | - platform: mqtt | ||||||
|   name: "Accurite Garage Temperature" |   name: "Accurite Garage Temperature" | ||||||
|   state_topic: "house/accurite-10968/temperature" |   state_topic: "house/accurite-10968/temperature" | ||||||
|  |   device_class: temperature | ||||||
| - platform: mqtt | - platform: mqtt | ||||||
|   name: "Accurite Garage Humidity" |   name: "Accurite Garage Humidity" | ||||||
|   state_topic: "house/accurite-10968/humidity" |   state_topic: "house/accurite-10968/humidity" | ||||||
| @@ -94,9 +97,14 @@ | |||||||
|     nws_current_forecast: |     nws_current_forecast: | ||||||
|       friendly_name: 'Current Forecast' |       friendly_name: 'Current Forecast' | ||||||
|       value_template: "{{ states.weather.klzu.attributes.forecast[0].detailed_description }}" |       value_template: "{{ states.weather.klzu.attributes.forecast[0].detailed_description }}" | ||||||
|  |     nws_current_rain_forecast: | ||||||
|  |       friendly_name: 'Current Rain Forecast' | ||||||
|  |       value_template: "{{ states.weather.klzu.attributes.forecast[0].precipitation_probability }}" | ||||||
|  |       unit_of_measurement: '%' | ||||||
|     nws_current_temperature: |     nws_current_temperature: | ||||||
|       friendly_name: 'Current Temperature' |       friendly_name: 'Current Temperature' | ||||||
|       value_template: "{{ states.weather.klzu.attributes.temperature }}" |       value_template: "{{ states.weather.klzu.attributes.temperature }}" | ||||||
|  |       device_class: temperature | ||||||
|     nws_daytime_temperature: |     nws_daytime_temperature: | ||||||
|       friendly_name: 'Daytime Temperature' |       friendly_name: 'Daytime Temperature' | ||||||
|       value_template: >- |       value_template: >- | ||||||
| @@ -105,6 +113,7 @@ | |||||||
|           {% elif states.weather.klzu.attributes.forecast[1].daytime == True %} |           {% elif states.weather.klzu.attributes.forecast[1].daytime == True %} | ||||||
|             {{ states.weather.klzu.attributes.forecast[1].temperature }} |             {{ states.weather.klzu.attributes.forecast[1].temperature }} | ||||||
|           {% endif %} |           {% endif %} | ||||||
|  |       device_class: temperature | ||||||
|     nws_current_condition:  |     nws_current_condition:  | ||||||
|       friendly_name: 'Current Condition' |       friendly_name: 'Current Condition' | ||||||
|       value_template: "{{ states.weather.klzu.state }}" |       value_template: "{{ states.weather.klzu.state }}" | ||||||
| @@ -137,14 +146,39 @@ | |||||||
|           {% elif states.weather.klzu.attributes.forecast[2].daytime == False %} |           {% elif states.weather.klzu.attributes.forecast[2].daytime == False %} | ||||||
|             {{ states.weather.klzu.attributes.forecast[2].detailed_description }} |             {{ states.weather.klzu.attributes.forecast[2].detailed_description }} | ||||||
|           {% endif %} |           {% endif %} | ||||||
|     nws_future_forecast: |     nws_forecast_tomorrow: | ||||||
|       friendly_name: "Future Forecast" |       friendly_name: "Forecast Tomorrow" | ||||||
|       unit_of_measurement: '' |       unit_of_measurement: '' | ||||||
|       value_template: >- |       value_template: >- | ||||||
|           {%- if states.weather.klzu.attributes.forecast[1].daytime == True %} |           {%- if states.weather.klzu.attributes.forecast[1].daytime == True %} | ||||||
|             {{ states.weather.klzu.attributes.forecast[1].detailed_description }}  |             {{ states.weather.klzu.attributes.forecast[1].detailed_description }}  | ||||||
|             before becoming {{ states.weather.klzu.attributes.forecast[2].detailed_description }} tomorrow night  |  | ||||||
|           {% elif states.weather.klzu.attributes.forecast[2].daytime == True %} |           {% elif states.weather.klzu.attributes.forecast[2].daytime == True %} | ||||||
|             {{ states.weather.klzu.attributes.forecast[2].detailed_description }}  |             {{ states.weather.klzu.attributes.forecast[2].detailed_description }}  | ||||||
|             before becoming {{ states.weather.klzu.attributes.forecast[3].detailed_description }} tomorrow night |           {%- endif %} | ||||||
|  |     nws_forecast_rain_tomorrow: | ||||||
|  |       friendly_name: "Rain Chance Tomorrow" | ||||||
|  |       unit_of_measurement: '%' | ||||||
|  |       value_template: >- | ||||||
|  |           {%- if states.weather.klzu.attributes.forecast[1].daytime == True %} | ||||||
|  |             {{ states.weather.klzu.attributes.forecast[1].precipitation_probability }}  | ||||||
|  |           {% elif states.weather.klzu.attributes.forecast[2].daytime == True %} | ||||||
|  |             {{ states.weather.klzu.attributes.forecast[2].precipitation_probability }}  | ||||||
|  |           {%- endif %} | ||||||
|  |     nws_forecast_tomorrow_night: | ||||||
|  |       friendly_name: "Forecast Tomorrow Night" | ||||||
|  |       unit_of_measurement: '' | ||||||
|  |       value_template: >- | ||||||
|  |           {%- if states.weather.klzu.attributes.forecast[1].daytime == True %} | ||||||
|  |             {{ states.weather.klzu.attributes.forecast[2].detailed_description }}  | ||||||
|  |           {% elif states.weather.klzu.attributes.forecast[2].daytime == True %} | ||||||
|  |             {{ states.weather.klzu.attributes.forecast[3].detailed_description }} | ||||||
|  |           {%- endif %} | ||||||
|  |     nws_forecast_rain_tomorrow_night: | ||||||
|  |       friendly_name: "Rain Chance Tomorrow Night" | ||||||
|  |       unit_of_measurement: '%' | ||||||
|  |       value_template: >- | ||||||
|  |           {%- if states.weather.klzu.attributes.forecast[1].daytime == True %} | ||||||
|  |             {{ states.weather.klzu.attributes.forecast[2].precipitation_probability  }}  | ||||||
|  |           {% elif states.weather.klzu.attributes.forecast[2].daytime == True %} | ||||||
|  |             {{ states.weather.klzu.attributes.forecast[3].precipitation_probability  }} | ||||||
|           {%- endif %} |           {%- endif %} | ||||||
		Reference in New Issue
	
	Block a user