alessmart

Ricarica tablet

Feb 11th, 2025
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. alias: "Ricarica iPad "
  2. description: ""
  3. mode: single
  4. triggers:
  5. - entity_id:
  6. - sensor.ipad_di_alessandro_battery_level_2
  7. from: null
  8. to: null
  9. trigger: state
  10. - entity_id:
  11. - input_number.livello_minimo
  12. from: null
  13. to: null
  14. trigger: state
  15. - entity_id:
  16. - input_number.ipad_livello_massimo
  17. from: null
  18. to: null
  19. trigger: state
  20. conditions: []
  21. actions:
  22. - if:
  23. - condition: numeric_state
  24. entity_id: sensor.ipad_di_alessandro_battery_level_2
  25. below: input_number.livello_minimo
  26. then:
  27. - metadata: {}
  28. data: {}
  29. target:
  30. device_id: 92889214c3d14f6a0ed5684a9e897a21
  31. action: switch.turn_on
  32. - if:
  33. - condition: numeric_state
  34. entity_id: sensor.ipad_di_alessandro_battery_level_2
  35. above: input_number.ipad_livello_massimo
  36. then:
  37. - metadata: {}
  38. data: {}
  39. target:
  40. device_id: 92889214c3d14f6a0ed5684a9e897a21
  41. action: switch.turn_off
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment