noam76 icon

timer with anchors

noam76 | PRO | 03/03/19 04:21:29 AM UTC | 0 ⭐ | 727 👁️ | Never ⏰ | []
YAML |

1.75 KB

|

None

|

0 👍

/

0 👎

# code validator
https://codebeautify.org/yaml-validator
 
# yaml array
https://symfony.com/doc/current/components/yaml/yaml_format.html
 
# YAML Multi-Line Arrays
https://stackoverflow.com/questions/23657086/yaml-multi-line-arrays
 
# entity-markdown-card
https://github.com/gadgetchnnel/lovelace-entity-markdown-card
https://community.home-assistant.io/t/lovelace-entity-markdown-card/71268
 
# anchors
https://blog.daemonl.com/2016/02/yaml.html
 
 
#!include input_boolean.yaml
# define multiple boolean for timer
##################################
#timer test date&time
 timer_datetime:
  initial: off
 salon_boolean_timer:
  initial: off
 salon1_boolean_timer:
  initial: off
 kitchen_boolean_timer:
  initial: off
 boiler_boolean_timer:
  initial: off
 toilet_boolean_timer:
  initial: off
 bathroom_boolean_timer:
  initial: off
 
#!include input_datetime.yaml
# define multiple variable with anchors
##################################
 timer_anchors: &definition
  name: Start Timer
  has_date: false
  has_time: true
 salon_timer_start:
  <<: *definition   
  name: Start Salon Timer
 salon1_timer_start:
  <<: *definition   
  name: Start Salon1 Timer
 kitchen_timer_start:
  <<: *definition
  name: Start Kitchen Timer
 boiler_timer_start:
  <<: *definition
  name: Start Boiler Timer
 toilet_timer_start:
  <<: *definition
  name: Start Toilet Timer
 
 test_timer_end:
  <<: *definition
  name: End  Test Timer
 salon_timer_end:
  <<: *definition
  name: End Salon Timer
 salon1_timer_end:
  <<: *definition
  name: End Salon1 Timer
 kitchen_timer_end:
  <<: *definition
  name: End Kitchen Timer
 boiler_timer_end:
  <<: *definition
  name: End Boiler Timer
 toilet_timer_end:
  <<: *definition
  name: End Toilet Timer

Comments