USING global VARIABLE IN yaml code - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: Development (https://www.kincony.com/forum/forumdisplay.php?fid=4) +--- Thread: USING global VARIABLE IN yaml code (/showthread.php?tid=3550) |
USING global VARIABLE IN yaml code - Regis - 11-20-2023 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 RE: USING global VARIABLE IN yaml code - admin - 11-21-2023 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 |