This morning I tried to use Hassio to open my door and turn on my lights but it wasn’t working.
I logged into Hassio and received the error below.
Your configuration contains extra keys that the platform does not support (but were silently accepted before 0.88). Please find and remove the following.This will become a breaking change.
[payload_open], [payload_close], [state_open], [state_closed]. (See /config/configuration.yaml, line 50).
Well, according to the MQTT switch documentation, that warning message is correct; those keys do not exist.
There are _on/_off versions that you may want to use instead.
Thanks, have made the changes as suggested, but my lights also do not work. I have check the mqtt with mqtt.fx and see no commands sent when I press buttons in Hassio. My light config below.
Unable to find platform alexa. Search path was limited to path of component: homeassistant.components
10:11 AM loader.py (ERROR) - message first occured at 9:02 AM and shows up 3 times
Your configuration contains extra keys that the platform does not support. Please remove [payload_open], [payload_close], [state_open], [state_closed].
10:11 AM helpers/config_validation.py (WARNING) - message first occured at 9:46 AM and shows up 2 times
Testing configuration at /config WARNING:homeassistant.helpers.config_validation:Your configuration contains extra keys that the platform does not support. Please remove [payload_open], [payload_close], [state_open], [state_closed]. Failed config General Errors: - Platform not found: media_player.alexa Successful config (partial)
10:07 AM components/hassio/__init__.py (ERROR)
Disconnected from MQTT (1). Trying to reconnect in 8 s
9:39 AM components/mqtt/__init__.py (WARNING)
Disconnected from MQTT (1). Trying to reconnect in 4 s
9:39 AM components/mqtt/__init__.py (WARNING)
Disconnected from MQTT (1). Trying to reconnect in 2 s
9:39 AM components/mqtt/__init__.py (WARNING)
Disconnected from MQTT (1). Trying to reconnect in 1 s
9:39 AM components/mqtt/__init__.py (WARNING)
Your configuration contains extra keys that the platform does not support. Please remove [payload_open], [payload_close], [state_open], [state_closed]. (See /config/configuration.yaml, line 50).
9:02 AM helpers/config_validation.py (WARNING)
Not quite, I get this in my (0.92.2) log:
2019-05-08 09:14:26 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [state_on], [state_off].
2019-05-08 09:14:26 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [state_on], [state_off].
Yes they where. But it looks like if the states_on/off are the same as payload_on/off, you have to remove the state_on/off lines. Anyway, when removed, the switches work fine (incl. states) and the warnings are gone.