I am working on my first blueprint. I tried changing some of the blueprints I saw and liked. That turned out to be a fool’s errand. So I am writing one from scratch. Blow is the blueprint as I have it now. Does not seem to have any errors, but when I go to create the automation, I get the following error:
Message malformed: extra keys not allowed @ data[‘actions’][1][‘choose’][0][‘conditions’][0][‘sequence’]
Still learning programming in HA and YAML itself so a lot of the messages are new to me. I have not found out what this message means.
What I am working on is a series of Blueprints to work with Philips Hue devices going through a Philips Hue Hub. I used ZHA for a while, but the stability of ZHA vs Hue was night and day for me. I am now in the process of moving everything I can off of ZHA.
I will be publishing all the blue prints I make as soon as I can get them all working
Greg
blueprint:
name: Philips hue 4 Button Remote v1.02
description: "This blueprint will allow you to control multiple lights from
one hue remote. The buttons operate as follows:
Power Button: Toggle On / Off lights (Long hold force all off)
Dim Up & Down: Dim the lights brighter and dimmer
hue button: Change the colour or hue of the light."
domain: automation
input:
remote_control:
name: hue Remote Control
description: choose the dimmer remote
selector:
device:
integration: hue
multiple: false
light_select:
name: Lights to be controlled
description: Choose the lights you want to control
selector:
entity:
domain: light
multiple: false
mode: single
triggers:
- device_id: !input remote_control
domain: hue
type: short_release
subtype: 1
trigger: device
id: 1short
- device_id: !input remote_control
domain: hue
type: long_release
subtype: 1
trigger: device
id: 1long
- device_id: !input remote_control
domain: hue
type: initial_press
subtype: 2
trigger: device
id: 2press
- device_id: !input remote_control
domain: hue
type: initial_press
subtype: 3
trigger: device
id: 3press
- device_id: !input remote_control
domain: hue
type: initial_press
subtype: 4
trigger: device
id: 4press
conditions: []
actions:
- type: turn_off
device_id: !input light_select
domain: light
- choose:
- conditions:
- condition: trigger
id:
- 1short
sequence:
- service: light.toggle
target:
entiry_id: !input light_select
- condition: trigger
id:
- 1long
sequence:
- service: light.turn_off
target:
entiry_id: !input light_select
- condition: trigger
id:
- 2press
sequence:
- service: light.turn_on
target:
entity_id: !input "light_select"
data:
brightness_step_pct: 10
transition: "{{ (var_speed / 1000)|float }}"
- condition: trigger
id:
- 3press
sequence:
- service: light.turn_on
target:
entity_id: !input "light_select"
data:
brightness_step_pct: -10
transition: "{{ (var_speed / 1000)|float }}"
- condition: trigger
id:
- 4press
sequence:
- service: light.turn_off
entiry_id: !input light_select