Your indentation is not correct. Exactly like the error message says, it contains tabs (‘\t’) before your list items. Only indentation by spaces are allowed in YAML.
So, spacing fixed, any idea why the colour is not adjusting in either of the below:
Transition and Brightness definitely are working, but the colour remains the same as previously set outside of the blueprint.
So what was the color before/after, and what model bulbs do you have? IKEA Trådfri bulbs have issues executing two simultaneous changes, like changing color and brightness at the same time.
As far as I can see there is nothing weird with the code. Though eventually, someone may chime in and say that the correct way nowadays is to no longer put entity_id under data, but rather put it under target…
Only difference between the two is a “press” or “hold” command.
Can’t see why that would make a difference in the grand scheme.
Switch doing the controlling is also a Philips Hue Dimmer Switch.
The not so terrible side affect I’ve now got is, a tap of the on switch with restore the previous colour at the required brightness. A hold of the switch will turn on at the default colour at the required brightness.
EDIT: More progress, double thru to quintuple press all adjust the colour also. Therefore the only press that doesn’t adjust the colour is the “On_Press” aka single press ****
There must be something more going on. I would suspect that either your “on_press” input in this automation executed more actions than you think it does, you have a different automation that also triggers on the same button press, or the your remote is sending more events that you are expecting (i.e. one for button down and another for button up or something like that).
I would start by looking in traces for this automation to see exactly which actions are executed, and also if it runs once or multiple times when the button is pressed. (Which mode is the automation set to by the way?) Then check the device logbook and see what happens when you press the button, does it report one or several events, and which automations trigger.
Just getting back around to this.
Thanks for pointing me in the right direction - I’m learning quite a bit as I go and starting to see the trees in the forest etc.
You were spot on with your thoughts, even though “on_press” seemed to be working (partially), tracing what was actually being sent turned out to be the key.
Seems the command being sent for a single press was i.e. tap on and release was “on_short_release”.