hsakoh / switchbot-mqtt

SwitchBot MQTT Home Assistant add-on
MIT License
55 stars 1 forks source link

Failed to save add-on configuration, Invalid list for option 'EnforceDeviceTypes #7

Closed Lomok82 closed 1 year ago

Lomok82 commented 1 year ago

I'm trying to configure the add-on but it always show the following mesage:

Failed to save add-on configuration, Invalid list for option 'EnforceDeviceTypes' in SwitchBot-Mqtt (cafb8c58_switchbot_mqtt). Got {'Mqtt': {'AutoConfig': True, 'Host': '', 'Port': 1883, 'Id': '', 'Pw': '', 'Tls': False}, 'SwitchBot': {'ApiKey': 'redacted', 'ApiSecret': 'redacted'}, 'EnforceDeviceTypes': 'Hub',

I've tried using default value of null, NULL and also tried using "hub" and "hub 2" but still the message is the same.

Am i missing something?

hsakoh commented 1 year ago

Please try entering it on the YAML input screen in the following format. EnforceDeviceTypes: [] image

Essentially, it is a forced override when there is no DeviceType response in the API, such as Curtain 3. Reference: https://github.com/hsakoh/switchbot-mqtt/issues/3#issuecomment-1712718641

Lomok82 commented 1 year ago

Thanks for the quick response!!! You are awesome!!!! I was able to save the configuration after changing that line and i'm able to discover the devices now.

Thanks!!