Advertisement
Wojcioo

sensors.yaml

Sep 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. # Weather prediction
  2. - platform: wunderground
  3. api_key: c8acee24ae49e96b
  4. monitored_conditions:
  5. - weather_1d_metric
  6. #- weather_1n_metric
  7. - weather_2d_metric
  8. #- weather_2n_metric
  9. - weather_3d_metric
  10. #- weather_3n_metric
  11. - weather_4d_metric
  12. #- weather_4n_metric
  13. #- temp_high_1d_c
  14. - temp_c
  15. #- temp_low_1d_c
  16. - precip_1d
  17. - precip_1d_mm
  18. - wind_kph
  19. #- wind_1d_kph
  20. - alerts
  21. - pressure_mb
  22. #- pressure_trend
  23. - visibility_km
  24. - relative_humidity
  25. #
  26. - platform: speedtest
  27. minute:
  28. - 30
  29. hour:
  30. - 0
  31. - 6
  32. - 12
  33. - 18
  34. monitored_conditions:
  35. - ping
  36. - download
  37. - upload
  38. - platform: mqtt
  39. name: "Temperatura"
  40. state_topic: "kotlownia/Sonoff-Pompa-CO/temperature"
  41. unit_of_measurement: "°C"
  42. #
  43. - platform: template
  44. sensors:
  45. battery_temp_humi_sensor_pracownia:
  46. friendly_name: 'pracownia'
  47. unit_of_measurement: '%'
  48. value_template: >-
  49. {% if state_attr('sensor.temperature_158d000223a270', 'battery_level') %}
  50. {{ state_attr('sensor.temperature_158d000223a270', 'battery_level') | round }}
  51. {% else %}
  52. {{ states('sensor.battery_temp_humi_sensor_pracownia') }}
  53. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement