Advertisement
giakAdi

Untitled

Jul 20th, 2022
1,029
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.98 KB | None | 0 0
  1. #input_number range de 0 à 120 min, por défaut réglé à 10min
  2. # l'Icône fait partie de ce set: https://github.com/elax46/custom-brand-icons
  3.  
  4. woox_range_minutes:
  5.   name: Temps de marche
  6.   initial: 10
  7.   min: 0
  8.   max: 120
  9.   step: 1
  10.   icon: phu:garden-irrigation
  11.   unit_of_measurement: " min"
  12.  
  13.  
  14. # Script
  15. irrigation_turnon:
  16.   alias: irrigation turn on
  17.   sequence:
  18.   - service: switch.turyn_on
  19.     entity_id: switch.{entity_id}
  20.   - delay:
  21.       minutes: '{{states(''input_number.woox_range_minutes'')}}'
  22.   - service: switch.turn_off
  23.     entity_id: switch.{entity_id}
  24.   icon: mdi:alert
  25.   mode: single
  26.  
  27.  
  28. # Pour la carte
  29. type: entities
  30. entities:
  31. # custom card pour av oir le choix "+ / -" dur le temps
  32.   - entity: input_number.woox_range_minutes
  33.     type: custom:numberbox-card
  34.     border: true
  35. #affichage du range classique
  36.   - entity: input_number.woox_range_minutes
  37. #Bouton d'execution du script
  38.   - entity: script.irrigation_turnon
  39.   - entity: switch.{entity_id}
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement