As the title says , I want to access a switch's state (actually several switch states) in rule machine rule.
What is the correct way to do this ?
I am not an advanced rule machine user, but I read through some documentation. I see there are variables and connectors. But I could not understand how to put a switch's state to a variable.
Also, I am not sure if I have to create a global variable to get a switch's state. Maybe it is already a predefined variable which can be accessed with not additional effort.
Btw, there may also be another option : maybe there is already a custom app which reports states of selected switches. Is there any app like that ?
Eventually I want to announce the states of selected switches through my connected speakers (or Alexa)