Advertisement
noam76

timer with anchors

Mar 2nd, 2019
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.75 KB | None | 0 0
  1. # code validator
  2. https://codebeautify.org/yaml-validator
  3.  
  4. # yaml array
  5. https://symfony.com/doc/current/components/yaml/yaml_format.html
  6.  
  7. # YAML Multi-Line Arrays
  8. https://stackoverflow.com/questions/23657086/yaml-multi-line-arrays
  9.  
  10. # entity-markdown-card
  11. https://github.com/gadgetchnnel/lovelace-entity-markdown-card
  12. https://community.home-assistant.io/t/lovelace-entity-markdown-card/71268
  13.  
  14. # anchors
  15. https://blog.daemonl.com/2016/02/yaml.html
  16.  
  17.  
  18. #!include input_boolean.yaml
  19. # define multiple boolean for timer
  20. ##################################
  21. #timer test date&time
  22.  timer_datetime:
  23.   initial: off
  24.  salon_boolean_timer:
  25.   initial: off
  26.  salon1_boolean_timer:
  27.   initial: off
  28.  kitchen_boolean_timer:
  29.   initial: off
  30.  boiler_boolean_timer:
  31.   initial: off
  32.  toilet_boolean_timer:
  33.   initial: off
  34.  bathroom_boolean_timer:
  35.   initial: off
  36.  
  37. #!include input_datetime.yaml
  38. # define multiple variable with anchors
  39. ##################################
  40.  timer_anchors: &definition
  41.   name: Start Timer
  42.   has_date: false
  43.   has_time: true
  44.  salon_timer_start:
  45.   <<: *definition  
  46.   name: Start Salon Timer
  47.  salon1_timer_start:
  48.   <<: *definition  
  49.   name: Start Salon1 Timer
  50.  kitchen_timer_start:
  51.   <<: *definition
  52.   name: Start Kitchen Timer
  53.  boiler_timer_start:
  54.   <<: *definition
  55.   name: Start Boiler Timer
  56.  toilet_timer_start:
  57.   <<: *definition
  58.   name: Start Toilet Timer
  59.  
  60.  test_timer_end:
  61.   <<: *definition
  62.   name: End  Test Timer
  63.  salon_timer_end:
  64.   <<: *definition
  65.   name: End Salon Timer
  66.  salon1_timer_end:
  67.   <<: *definition
  68.   name: End Salon1 Timer
  69.  kitchen_timer_end:
  70.   <<: *definition
  71.   name: End Kitchen Timer
  72.  boiler_timer_end:
  73.   <<: *definition
  74.   name: End Boiler Timer
  75.  toilet_timer_end:
  76.   <<: *definition
  77.   name: End Toilet Timer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement