scottyphillips/echonetlite_homeassistant

Automatic configuration of main switch

Closed this issue · 2 comments

After checking the ECHONET specifications, it seems that 0x80 is defined by the super class and can be set on many devices. If the Set property has 0x80, I think it's a good idea to automatically configure it as a switch entity. If you haven't worked on adding this feature yet, should I send you a PR?

I was able to do it relatively quickly, so I created a PR(#85).

Only concern I have is around that 0x80 it’s not mandatory for it to be a set value, at least from my understanding of the English version of the spec. Perhaps we can allow users to decide, by either creating both a sensor and switch or a checkbox.

https://echonet.jp/spec_object_rp1_en/

B787673B-C4F1-42A5-B082-5287790C314D