I am currently having the same issue as @Inferi0r with the 1.2 version of the blueprint. No matter which actions I setup, I get “result:false” on the conditions step on my debug. I have validated through mqtt explorer and the state messages in developer tools that the sides are correct. I can see all the state changes happening, and the side 0 is the first one I’ve been attempting to configure but without any success.
Executed: January 17, 2022, 6:11:03 PM
Result:
result: false
conditions/0
condition: and
conditions:
- condition: template
value_template: >-
{{ trigger.from_state.attributes.action !=
trigger.to_state.attributes.action }}
- condition: template
value_template: >-
{{ trigger.to_state.attributes.action in ('rotate_right', 'rotate_left',
'flip90', 'flip180', 'slide', 'tap', 'shake', 'fall') }}
This is the topic and information I see in MQTT for the messages when I rotate right on side 0
{
"action": "rotate_right",
"action_angle": 70.46,
"action_from_side": null,
"action_side": null,
"action_to_side": null,
"angle": -60.48,
"battery": 100,
"linkquality": 51,
"side": 0,
"voltage": 3005
}
Full automation configuration as well
mode: queued
max: 5
max_exceeded: silent
trigger:
- platform: state
entity_id: sensor.aqara_cube_action
condition:
- condition: and
conditions:
- condition: template
value_template: >-
{{ trigger.from_state.attributes.action !=
trigger.to_state.attributes.action }}
- condition: template
value_template: >-
{{ trigger.to_state.attributes.action in ('rotate_right',
'rotate_left', 'flip90', 'flip180', 'slide', 'tap', 'shake', 'fall')
}}
action:
- variables:
event: '{{ trigger.to_state.attributes.action }}'
sub_event: '{{ trigger.to_state.attributes.side }}'
- service: system_log.write
data:
level: info
message: 'Blueprint Script: {{ event }} {{ sub_event }}'
- choose:
- conditions: '{{ event == "slide" }}'
sequence:
- choose:
- conditions: '{{ sub_event == 0 }}'
sequence: []
- conditions: '{{ sub_event == 1 }}'
sequence: []
- conditions: '{{ sub_event == 2 }}'
sequence: []
- conditions: '{{ sub_event == 3 }}'
sequence: []
- conditions: '{{ sub_event == 4 }}'
sequence: []
- conditions: '{{ sub_event == 5 }}'
sequence: []
- conditions: '{{ event == "tap" }}'
sequence:
- choose:
- conditions: '{{ sub_event == 0 }}'
sequence: []
- conditions: '{{ sub_event == 1 }}'
sequence: []
- conditions: '{{ sub_event == 2 }}'
sequence: []
- conditions: '{{ sub_event == 3 }}'
sequence: []
- conditions: '{{ sub_event == 4 }}'
sequence: []
- conditions: '{{ sub_event == 5 }}'
sequence: []
- conditions: '{{ event == "flip90" }}'
sequence:
- choose:
- conditions: '{{ sub_event == 0 }}'
sequence:
- service: light.turn_on
target:
entity_id: light.office_closet_light
data:
brightness: 128
- conditions: '{{ sub_event == 1 }}'
sequence: []
- conditions: '{{ sub_event == 2 }}'
sequence: []
- conditions: '{{ sub_event == 3 }}'
sequence: []
- conditions: '{{ sub_event == 4 }}'
sequence: []
- conditions: '{{ sub_event == 5 }}'
sequence: []
- conditions: '{{ event == "flip180" }}'
sequence:
- choose:
- conditions: '{{ sub_event == 0 }}'
sequence:
- service: light.turn_on
data:
brightness: 128
target:
entity_id: light.office_closet_light
- conditions: '{{ sub_event == 1 }}'
sequence: []
- conditions: '{{ sub_event == 2 }}'
sequence: []
- conditions: '{{ sub_event == 3 }}'
sequence: []
- conditions: '{{ sub_event == 4 }}'
sequence: []
- conditions: '{{ sub_event == 5 }}'
sequence: []
- conditions: '{{ event == "rotate_right" }}'
sequence:
- choose:
- conditions: '{{ sub_event == 0 }}'
sequence:
- service: light.turn_on
target:
device_id: 1613c888150941e2bb2cddf362a294f8
data:
brightness_step: 10
- conditions: '{{ sub_event == 1 }}'
sequence: []
- conditions: '{{ sub_event == 2 }}'
sequence: []
- conditions: '{{ sub_event == 3 }}'
sequence: []
- conditions: '{{ sub_event == 4 }}'
sequence: []
- conditions: '{{ sub_event == 5 }}'
sequence: []
- conditions: '{{ event == "rotate_left" }}'
sequence:
- choose:
- conditions: '{{ sub_event == 0 }}'
sequence:
- service: light.turn_on
target:
device_id: 1613c888150941e2bb2cddf362a294f8
data:
brightness_step_pct: -10
- conditions: '{{ sub_event == 1 }}'
sequence: []
- conditions: '{{ sub_event == 2 }}'
sequence: []
- conditions: '{{ sub_event == 3 }}'
sequence: []
- conditions: '{{ sub_event == 4 }}'
sequence: []
- conditions: '{{ sub_event == 5 }}'
sequence: []
- conditions: '{{ event == "shake" }}'
sequence: []
- conditions: '{{ event == "fall" }}'
sequence: []
id: '1642466419586'
alias: Aqara Magic Cube (Z2M)
description: ''
Any idea what’s going wrong here? I’ve tried side 3 for some actions as well, same results.