KiraPC / ha-switchbot-remote

A Custom HomeAssistant Integration to control Switchbot Hub
MIT License
54 stars 3 forks source link

Please Add Support for Learned Devices #9

Closed atxnyc closed 1 year ago

atxnyc commented 1 year ago

I've been using this integration and its fantastic - one issue I've noticed though is that some AC settings are not supported by switchbot (silent mode, turbo mode, certain types of oscillation) and a workaround I have used is to create these using 'Learn Buttons' instead of smart matching or selecting a device manually.

For example I have a setting for rapid cooling which maxes out the fan and chooses some settings not supported by switchbot, after learning the signal it is available as a basic On/Off switch which would be great for use in automations.

However, these types of remotes don't appear to be discovered by the integration currently - is it possible to add support for these?

Some of the code, specifically the configure flow already appears to see these, but they don't show up as devices or entities

Custom Remote Type: image

Appearance when Configured: image

Learned Remotes in Config Flow: image

But not present in devices: image

KiraPC commented 1 year ago

Hello @atxnyc thanks for support.

Tra, i'll try to implements this asap.

KiraPC commented 1 year ago

@atxnyc unfortunately I guess this features will be delivered in September. I'm on vacation in my parent's town and I did not bring with me the switchbot hub that is necessary in order to get the response body with this learned device and integrate it in HA.

Otherwise you should send the api response (if you are able to get it by yourself) and paste it here and I'll try to analyze.

atxnyc commented 1 year ago

@KiraPC no worries at all -- I'll see if I can get the response out, but otherwise I'll look forward to September

KiraPC commented 1 year ago

@atxnyc I released the 0.2.1-beta.1 version. Could you please check if it is working?

joshepw commented 1 year ago

@atxnyc please can you test the 0.2.2-beta.2 version?

joshepw commented 1 year ago

Released in stable version 1.0.0.