Got a few Xiaomi home products.
Overall works really wel.
Got the gateway and a door sensor set up.
But the Magic Cube (the cherry on the cake) won’t respond.
I’ve added the Cube through the Mi Home app.
I see the binary sensor in developer tools - entities;
‘binary_sensor.cube_158d000269e292’ the status is ‘off’.
Can set it to ‘on’ manually, but after restart it switches back to ‘off’.
Don’t know if that’s an issue though, cause the door sensor also reads ‘off’.
Wrote an automation for the Cube:
automation:
- alias: Increase brightness
trigger:
- platform: event
event_type: cube_action
event_data:
entity_id: binary_sensor.cube_158d000269e292
action_type: rotate
action:
- service: light.turn_on
entity_id: light.gateway_light_7811dcb8c9ba
data_template:
brightness: >
{% set suggested = states.light.gateway_light_7811dcb8c9ba.attributes.brightness|int + 31 %}
{% if suggested < 200 %}
{{ suggested }}
{% else %}
200
{% endif %}
If I manually call the automation, it works.
Somehow it isn’t responding to any of the ‘states’ (rotate, tap and so forth)
Also, the battery level is rapidly depleting.
Been using it for 1 evening, it dropped from 70% to 27%.
Does anybody have an idea? / encountered same issues?
Thanks in advance!