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

辰星开关电量被识别成开关 #1

Open
xiemuyun opened this issue Mar 6, 2020 · 2 comments
Open

辰星开关电量被识别成开关 #1

xiemuyun opened this issue Mar 6, 2020 · 2 comments

Comments

@xiemuyun
Copy link

xiemuyun commented Mar 6, 2020

SL_SW_ND1有个IO idx值是P2,是单路开关里面电池的剩余电量,在目前的插件中也被识别为了开关,同理SL_SW_ND2 的 P3,SL_SW_ND2的P4,大佬可以研究一下是不是能让他变成sensor形式

@skyzhishui
Copy link
Owner

SL_SW_ND1有个Io IDx值是P2,是单路开关里面电池的剩余电量,在现有的插件中也被识别到开关,同理SL_SW_ND2的P3,SL_SW_ND2的P4,大佬可以研究一下是不是可以他变成传感器形式

我看了下内置电池的开关会根据路数,idx:P2/P3/P4为电池电量,要支持的话需要加一些特殊判断了。目前手头上没有这类型的开关,有空我来研究下。

@skyzhishui skyzhishui reopened this Mar 9, 2020
@xiemuyun
Copy link
Author

我研究了一下,因为没有写custom component的经验。。卡在了如何把一个开关设备分开是别成两种类型,就是几个是switch 几个是sensor这块

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