I would like to create automation in HA to turn off/on bulb when I close my phone to tag.
So, for I am using scene (this scene just do bulb ON) in HA then in iOS I create shortcut where I activate scene from HA, then I create automation which is activated by close to tog.
This is working, but I can only turn ON bulb, in this scenario I would need to create another scene in HA to turn off bulb - to me this is looks like duplicate things.
I would like to use just one tag to turn off and on.
Could you please review my approach ? Maybe it is overkill and I can have this easier?
Now, I noticed strange thing.
When my automation is enabled in HA, then switch for bulb does not work correct on dashboard.
When I try switch on it switch for 1 sec and go off.
Once I turn off automation switch working fine.