Issue scene automation vera home assistant

So I have a Z-wave energy meter connected to my TV, when TV starts, it set a virtual switch to on and when TV gets to off it sets the virtual switch to off.
This switch is visuable in HA and I’ve set up some script and scenes to dim my light in the room when the TV switch is set to on, and to set the lights brighter when TV gets off again.

Now…
My issue is that when the switch is changed in vera by auto nothing happens to my hue lights. But when I toggle the switch manually it works as supposed, how could this be?

Grateful for any help in resolving this matter :grinning: