Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

八键情景面板V1(cxw.remote.panv01)无法获取准确的entity状态 #335

Open
ldwnt opened this issue Dec 21, 2024 · 2 comments
Open
Assignees

Comments

@ldwnt
Copy link

ldwnt commented Dec 21, 2024

Describe the Bug / 描述问题

单击按键一2次,第1次单击后entity的numeric_state变为1并不置空,导致第2次单击时状态未变化,因此不会触发对应的automation

How to Reproduce / 复现步骤

  1. 设定一个automation,当单击entity的numeric_state变为1(其实是设置below=2、above=0)时让小爱音箱播放文本“单击按键一”
  2. 单击按键一,音箱广播文本
  3. 再次单击按键一,音箱不广播文本

Expected Behavior / 预期结果

单击按键一后,单击entity的numeric_state变为1,随后置空,这样无论连续单击按键一多少次,音箱都会广播文本

Home Assistant Logs / 系统日志

No response

Home Assistant Core Version / Home Assistant Core 版本

2024.12.2

Home Assistant Operation System Version / Home Assistant Operation System 版本

14.0

Xiaomi Home Integration Version / 米家集成版本

0.1.3

Additional Context / 其他说明

No response

@SusanPhevos SusanPhevos self-assigned this Dec 21, 2024
@SusanPhevos
Copy link
Contributor

请问numeric_state是什么?能不能发一下截图?设备的MIoT-Spec-V2未找到相应属性或事件。
另外,该设备应该会生成“单击”事件的实体,触发事件时实体详情页会显示是哪一个按键触发了单击事件。

@ldwnt
Copy link
Author

ldwnt commented Dec 22, 2024

请问numeric_state是什么?能不能发一下截图?设备的MIoT-Spec-V2未找到相应属性或事件。 另外,该设备应该会生成“单击”事件的实体,触发事件时实体详情页会显示是哪一个按键触发了单击事件。
numeric_state是automation中的一种触发条件:
image

单击entity:
image

automation见下:

alias: 按键二单击
description: ""
triggers:
  - trigger: numeric_state
    entity_id:
      - event.xxx
    attribute: 情景按键
    above: 1
    below: 3
conditions: []
actions:
  - device_id: yyy
    domain: text
    entity_id: zzz
    type: set_value
    value: 按键二单击
mode: single

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants