Giter Club home page Giter Club logo

home-assistant-config's People

Contributors

sirgoodenough avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

home-assistant-config's Issues

Aqara cube blueprint not passing first if statement

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

action that calls an unknown service

Hi,
i am sorry to bother you, but i can't get the dimmer control to work. Following error occurs:
image
the scripts part:
image
and the actions in the automation:
image
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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.