Advertisement
pqpxoxa

HA - UniFi status change (On to Online ...)

Oct 8th, 2020
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. platform: template
  2. sensors:
  3. unifiusg:
  4. friendly_name: UniFi USG
  5. entity_id: binary_sensor.unifi_usg
  6. value_template: >-
  7. {% if is_state('binary_sensor.unifi_usg', 'on') %}
  8. Online
  9. {% else %}
  10. Offline
  11. {% endif %}
  12.  
  13. unifickg2:
  14. friendly_name: UniFi CKG2
  15. entity_id: binary_sensor.unifi_controller
  16. value_template: >-
  17. {% if is_state('binary_sensor.unifi_controller', 'on') %}
  18. Online
  19. {% else %}
  20. Offline
  21. {% endif %}
  22.  
  23. unifiswitch:
  24. friendly_name: UniFi Switch
  25. entity_id: binary_sensor.unifi_16_switch
  26. value_template: >-
  27. {% if is_state('binary_sensor.unifi_16_switch', 'on') %}
  28. Online
  29. {% else %}
  30. Offline
  31. {% endif %}
  32.  
  33. unifiap:
  34. friendly_name: UniFi AP's
  35. entity_id: binary_sensor.unifi_ap_up
  36. value_template: >-
  37. {% if is_state('binary_sensor.unifi_ap_up', 'on') %}
  38. Online
  39. {% else %}
  40. Offline
  41. {% endif %}
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement