HA_Blueprints icon indicating copy to clipboard operation
HA_Blueprints copied to clipboard

[BUG] last_side appears to not be correctly updated.

Open lemon1324 opened this issue 1 year ago • 0 comments

Blueprint: Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.yaml

Bug Description: The last_side number helper is created and appears as an MQTT entity, however the value of the number helper is never updated when looking at the entity history. Instead, it is always 'unavailable'

On the other hand, all group 1 actions (those not conditional on last_side) all work perfectly. The template sensor suggested to aid debugging always shows the last action as 'from side 0'.

To Reproduce: Steps to reproduce the behavior:

  1. Import blueprint from https://github.com/SirGoodenough/HA_Blueprints/blob/master/Automations/Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.yaml
  2. Click on blueprint to make an automation.
  3. Add notification action for "side 2 from any side" in group 1, scene mode.
  4. Add notification action for "side 5 from side 1" in group 3, scene mode.
  5. Side 2 action fires a notification when the cube is flipped; side 5 does not.
  6. Viewing trace of the side 5 flip shows that last_side is set to zero, and therefore skips all group 3 actions.

Expected behavior: The number helper is being created, but I expect it to be updated with the last side each time the cube is flipped.

Screenshots: Screenshot 2024-12-20 174622 Screenshot 2024-12-20 174711

History of number helper entity and snapshot of template sensor output.

Blueprint Version: Aqara-Magic-Cube-T1-Pro-(CTP-R01) - 2024-06-04

HA Core Version: core-2024.12.4

Installation: Home Assistant OS

YAML snippets: N/A - attempting to use the automation directly created by the blueprint.

Additional context Using Aqara Cube T1 Pro, CTP-R01.

See also initial post in Home Assistant Community Forum. Followed the suggested reset steps there, and the problem persists.

lemon1324 avatar Dec 21 '24 01:12 lemon1324