Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Weather prediction
- - platform: wunderground
- api_key: c8acee24ae49e96b
- monitored_conditions:
- - weather_1d_metric
- #- weather_1n_metric
- - weather_2d_metric
- #- weather_2n_metric
- - weather_3d_metric
- #- weather_3n_metric
- - weather_4d_metric
- #- weather_4n_metric
- #- temp_high_1d_c
- - temp_c
- #- temp_low_1d_c
- - precip_1d
- - precip_1d_mm
- - wind_kph
- #- wind_1d_kph
- - alerts
- - pressure_mb
- #- pressure_trend
- - visibility_km
- - relative_humidity
- #
- - platform: speedtest
- minute:
- - 30
- hour:
- - 0
- - 6
- - 12
- - 18
- monitored_conditions:
- - ping
- - download
- - upload
- - platform: mqtt
- name: "Temperatura"
- state_topic: "kotlownia/Sonoff-Pompa-CO/temperature"
- unit_of_measurement: "°C"
- #
- - platform: template
- sensors:
- battery_temp_humi_sensor_pracownia:
- friendly_name: 'pracownia'
- unit_of_measurement: '%'
- value_template: >-
- {% if state_attr('sensor.temperature_158d000223a270', 'battery_level') %}
- {{ state_attr('sensor.temperature_158d000223a270', 'battery_level') | round }}
- {% else %}
- {{ states('sensor.battery_temp_humi_sensor_pracownia') }}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement