Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105696

Aqara Magic Cube, turn event into entity

$
0
0

Hi team
thanks to the amazing Aqara Magic Cube blueprint, I am properly using an Aqara Magic Cube to turn light ON or OFF when rotating left or right, and more.
Dummy question I can’t get my head around: I would like to show which side the Magic Cude is facing up on my Lovelace dashboard. Not being an entity, how to make a last_event an entity?

Example of the event received. I’d simply want to show “Face up: 6”, 6 being the activated_face, on my dashboard:

{
    "event_type": "zha_event",
    "data": {
        "device_ieee": "00:15:8d:xx:xx:xx:20:88",
        "unique_id": "00:15:8d:xx:xx:xx:20:88:2:0x0012",
        "device_id": "f2c67b3fefa61fb1147cf5",
        "endpoint_id": 2,
        "cluster_id": 18,
        "command": "flip",
        "args": {
            "value": 69,
            "flip_degrees": 90,
            "deactivated_face": 1,
            "activated_face": 6
        }
    },
    "origin": "LOCAL",
    "time_fired": "2022-02-28T17:41:19.604763+00:00",
    "context": {
        "id": "880a94280a442f8e3516b3ef6c7d4192",
        "parent_id": null,
        "user_id": null
    }
}

Thanks !

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>