I have a little question... the only thing I want to do is to read the state of a switch in Bash...
how can I do that? I can use json but, not found how to call a specific value (Data or Status) of a switch..
I have a script (doorbell) which needs to check if gong is turned on yes or no, based on that the gong works or not...
Anyone?