Advertisement
Wykop

Encje

Dec 18th, 2022
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. W template.yaml
  2.  
  3. - sensor:
  4. - name: Encje
  5. icon: mdi:counter
  6. availability: "{{states != unknown}}"
  7. state: "{{states | count}}"
  8. attributes:
  9. automation: "{{states['automation'] | count}}"
  10. binary_sensor: "{{states['binary_sensor'] | count}}"
  11. button: "{{states['button'] | count}}"
  12. device_tracker: "{{states['device_tracker'] | count}}"
  13. group: "{{states['group'] | count}}"
  14. input_boolean: "{{states['input_boolean'] | count}}"
  15. input_button: "{{states['input_button'] | count}}"
  16. input_datetime: "{{states['input_datetime'] | count}}"
  17. input_select: "{{states['input_select'] | count}}"
  18. input_text: "{{states['input_text'] | count}}"
  19. light: "{{states['light'] | count}}"
  20. media_player: "{{states['media_player'] | count}}"
  21. person: "{{states['person'] | count}}"
  22. remote: "{{states['remote'] | count}}"
  23. script: "{{states['script'] | count}}"
  24. select: "{{states['select'] | count}}"
  25. sensor: "{{states['sensor'] | count}}"
  26. sun: "{{states['sun'] | count}}"
  27. switch: "{{states['switch'] | count}}"
  28. update: "{{states['update'] | count}}"
  29. zone: "{{states['zone'] | count}}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement