Skip to content
New issue

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

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

Already on GitHub? # to your account

乐天派人体传感器POP显示不全 #1851

Closed
lili890527 opened this issue Sep 8, 2024 · 2 comments
Closed

乐天派人体传感器POP显示不全 #1851

lili890527 opened this issue Sep 8, 2024 · 2 comments

Comments

@lili890527
Copy link

lili890527 commented Sep 8, 2024

Device model / 设备型号

乐天派人体传感器POP

Component version / 插件版本

0.7.X

HA core version / HA版本

2024.9.2

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

乐天派人体传感器POP有多个传感器,通过网关后,米家APP都有数值。但HA自动接入的时候,传感器少了照度传感器数值。

Entity attributes / 实体属性

无实体

Home Assistant Logs / 系统日志

No response

@al-one
Copy link
Owner

al-one commented Sep 9, 2024

提供同设备下其他实体的属性

@lili890527
Copy link
Author

lili890527 commented Sep 10, 2024

提供同设备下其他实体的属性

已经用template模板写好了,可以调用出来,如果可以自动生成就更好了。

sensor:
  - platform: template
    sensors:
      zhuwo_renzai_lux:
        friendly_name: "主卧人在照度"
        value_template:  "{{ state_attr('sensor.rhj_l730a_7b50_occupancy_sensor', 'occupancy_sensor.illumination') }}"
        unit_of_measurement: "lx"
        unique_id: sensor.zhuwo_renzai_lux
        device_class: illuminance

设备的属性图片如下:b49958dc52b0fe3dc04717b7a9d46ba

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

No branches or pull requests

2 participants