sirgoodenough / home-assistant-config Goto Github PK
View Code? Open in Web Editor NEWMy HA Configuration... This is what I run for production in my house.
My HA Configuration... This is what I run for production in my house.
Any action on the cube does not pass the first test:
condition: template
value_template: >-
{{ trigger.to_state.attributes.action in ('rotate_right', 'rotate_left',
'flip90', 'flip180', 'slide', 'tap', 'shake', 'fall') }}
which I believe checks that the to_state
attribute action is one of the approved actions.
I believe this is due to the fact that the cube actually passes information through the from_state
. See e.g. the "changed variables" log in the root node, further below for a shake
action. The same happens for other types of actions. I tried to modify the blueprint by blindly replacing all occurrences of to_state
to from_state
but to no avail.
Any help is appreciated! (Btw, thanks a lot for the work on the blueprint!)
this:
entity_id: automation.aqara_magic_cube_zigbee2mqtt_2022_05_05
state: 'on'
attributes:
last_triggered: null
mode: single
current: 0
id: '1657501384162'
friendly_name: Aqara Magic Cube Zigbee2MQTT - 2022-05-05
last_changed: '2022-07-11T01:03:05.832864+00:00'
last_updated: '2022-07-11T01:03:05.832864+00:00'
context:
id: 01G7NCG1387YT17DZAVCT3BZMR
parent_id: null
user_id: null
trigger:
id: '0'
idx: '0'
platform: state
entity_id: sensor.sofa_cube_action
from_state:
entity_id: sensor.sofa_cube_action
state: shake
attributes:
icon: mdi:gesture-double-tap
friendly_name: Sofa cube action
last_changed: '2022-07-11T01:03:34.619307+00:00'
last_updated: '2022-07-11T01:03:34.619307+00:00'
context:
id: 01G7NCGX6V87GM9S0283VGZWSF
parent_id: null
user_id: null
to_state:
entity_id: sensor.sofa_cube_action
state: ''
attributes:
icon: mdi:gesture-double-tap
friendly_name: Sofa cube action
last_changed: '2022-07-11T01:03:34.645898+00:00'
last_updated: '2022-07-11T01:03:34.645898+00:00'
context:
id: 01G7NCGX7NKHZY642H9CGWS8T0
parent_id: null
user_id: null
for: null
attribute: null
description: state of sensor.sofa_cube_action
is the discord link working?
Hi,
i am sorry to bother you, but i can't get the dimmer control to work. Following error occurs:
the scripts part:
and the actions in the automation:
All parts were just copy & pasted, no personal adoptions.
Other stuff like tapping sides to turn on/off the selected light work porperly.
Do you have an idea, what is going wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.