Advertisement
dckiller

Miscale X users exemple

Nov 2nd, 2020
1,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. - platform: template
  2. sensors:
  3. poids_aurelien:
  4. friendly_name: "Poids Aurélien"
  5. value_template: >-
  6. {% if states('sensor.miscale') | float >= 69 and states('sensor.miscale') | float <= 72.99 %}
  7. {{ states("sensor.miscale") }}
  8. {% endif %}
  9. unit_of_measurement: 'kg'
  10. icon_template: mdi:scale-bathroom
  11. - platform: template
  12. sensors:
  13. poids_siham:
  14. friendly_name: "Poids Siham"
  15. value_template: >-
  16. {% if states('sensor.miscale') | float >= 73 and states('sensor.miscale') | float <= 80 %}
  17. {{ states("sensor.miscale") }}
  18. {% endif %}
  19. unit_of_measurement: 'kg'
  20. icon_template: mdi:scale-bathroom
  21. - platform: template
  22. sensors:
  23. poids_sacha:
  24. friendly_name: "Poids Sacha"
  25. value_template: >-
  26. {% if states('sensor.miscale') | float >= 28 and states('sensor.miscale') | float <= 35 %}
  27. {{ states("sensor.miscale") }}
  28. {% endif %}
  29. unit_of_measurement: 'kg'
  30. icon_template: mdi:scale-bathroom
  31. - platform: template
  32. sensors:
  33. poids_theo:
  34. friendly_name: "Poids Théo"
  35. value_template: >-
  36. {% if states('sensor.miscale') | float >= 48 and states('sensor.miscale') | float <= 55 %}
  37. {{ states("sensor.miscale") }}
  38. {% endif %}
  39. unit_of_measurement: 'kg'
  40. icon_template: mdi:scale-bathroom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement