Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
USING global VARIABLE IN yaml code
#1
Hi, I want to use the same input (telecommand) to open a gate, and after to close it. 

how can I define a boolean variable (VAR1 for instance)  and test it to know if the gate is open or closed ?

I need to use this variable in several scripts. can you give me the syntax of the command to write, and in what .yaml file to use :  configuration.yaml ? or automation.yaml ? (joined)  or others ?

Thank's for your help


Attached Files
.txt   automations.yaml.txt (Size: 1.6 KB / Downloads: 108)
.txt   configuration.yaml.txt (Size: 454 bytes / Downloads: 135)
Reply
#2
not need to config in yaml. just add a binary sensor for detect door, create AUTOMATION in home assistant: IF digital input=true THEN xxxxxxx
Reply


Forum Jump:


Users browsing this thread: