Advertisement
Guest User

Untitled

a guest
May 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.23 KB | None | 0 0
  1. ####################################
  2. ####### PYWWS Stazione Meteo #######
  3. ####################################
  4. sensor:
  5.   - platform: mqtt
  6.     name: "H Esterna"
  7.     icon: mdi:water-percent
  8.     state_topic: "homeassistant/sensor/weather/pywws"
  9.     unit_of_measurement: '%'
  10.     value_template: "{{ value_json.hum_out }}"
  11.  
  12.   - platform: mqtt
  13.     name: "H interna"
  14.     icon: mdi:water-percent
  15.     state_topic: "homeassistant/sensor/weather/pywws"
  16.     unit_of_measurement: '%'
  17.     value_template: "{{ value_json.hum_in }}"
  18.  
  19.   - platform: mqtt
  20.     name: "T Esterna"
  21.     state_topic: "homeassistant/sensor/weather/pywws"
  22.     unit_of_measurement: '°C'
  23.     value_template: "{{ value_json.temp_out_c }}"
  24.  
  25.   - platform: mqtt
  26.     name: "T Interna"
  27.     state_topic: "homeassistant/sensor/weather/pywws"
  28.     unit_of_measurement: '°C'
  29.     value_template: "{{ value_json.temp_in_c }}"
  30.  
  31.   - platform: mqtt
  32.     name: "Vento - Direzione"
  33.     icon: mdi:compass
  34.     state_topic: "homeassistant/sensor/weather/pywws"
  35.     unit_of_measurement: '°'
  36.     value_template: "{{ value_json.wind_dir }}"
  37.  
  38.   - platform: mqtt
  39.     name: "Vento - Velocità Media"
  40.     icon: mdi:weather-windy
  41.     state_topic: "homeassistant/sensor/weather/pywws"
  42.     unit_of_measurement: 'm/s'
  43.     value_template: "{{ (value_json.wind_ave | float * 0.44704) | round (1) }}"
  44.  
  45.   - platform: mqtt
  46.     name: "Vento - Raffica"
  47.     icon: mdi:weather-windy
  48.     state_topic: "homeassistant/sensor/weather/pywws"
  49.     unit_of_measurement: 'm/s'
  50.     value_template: "{{ (value_json.wind_gust | float * 0.44704) | round (1) }}"
  51.  
  52.   - platform: mqtt
  53.     name: "Pressione"
  54.     icon: mdi:gauge
  55.     state_topic: "homeassistant/sensor/weather/pywws"
  56.     unit_of_measurement: 'hPa'
  57.     value_template: "{{ (value_json.rel_pressure | float * 33.863886666667) | round (1) }}"
  58.  
  59.   - platform: mqtt
  60.     name: "Pioggia"
  61.     icon: mdi:weather-rainy
  62.     state_topic: "homeassistant/sensor/weather/pywws"
  63.     unit_of_measurement: 'mm/h'
  64.     value_template: "{{ value_json.rain }}"
  65.  
  66.   - platform: mqtt
  67.     name: "Pioggia - 24h"
  68.     icon: mdi:weather-rainy
  69.     state_topic: "homeassistant/sensor/weather/pywws"
  70.     unit_of_measurement: 'mm/24h'
  71.     value_template: "{{ value_json.dailyrain }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement