I'm relatively new to HA and my Philips Hue dimmer switch is connected via ZHA and the blueprints I found online don't really work for my use-case. I'd prefer to work in python and see there is pyscript and appdaemon. Any recommendation on which to use or if there are others for someone like me that would prefer to code things up instead of using yaml/blueprints?
I installed pyscript and have
@event_trigger(EVENT_CALL_SERVICE)
def hello_world(context=None, **kw):
log.info(f"XXX {kw}")```
to detect clicks on my switch and I see them only if I have the blueprint installed. When I removed the blueprint I don't see anything being triggered - I'm a bit curious as to how that works...