I have this piston which sets my hub’s status to Away when there’s no one home (this depends on my phone’s location and on a switch status), and to Home whenever I’m home or the switch is on. Or both. This part (lines 17 to 25) took me some time but it’s working fine now.
In the same piston, there are actions that are specific for each device (the actions based on the hub’s Home/Away status are on another piston).
I want to get a notification on my phone whenever Switch 9 is on or off, and also set a light to flash for a specific amount of time every on/off. I’m sending “Gente ON” and “Gente OFF” (People ON/OFF). This is in lines 26 to 46.
The weird thing is that today I left home and I got a “Gente OFF” notification. My Hub’s status turned to Away (as expected). I checked on ST app activity and there’s no mention of the Gente switch turning on or off. Then I arrived and I got the notification “Gente ON”. Again, that switch was untouched (both physically and in the app activity).
I checked other pistons to make sure the notification wasn’t being sent from another place, but nope.
As it doesn’t make any sense to me, I’m suspecting it’s related to lines 18 and 20 being set as “Suscription Method: Always”
Any ideas?
Thanks!