Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Entity not available in MQTT switch after adding (optional) configuration variables

$
0
0

@MicKet1 wrote:

I add the following basic lines to my configuration.yaml file:
switch:
- platform: mqtt
command_topic: "/house/switch1/command"

This works fine; I see a switch entity in the Lovelace UI:
sshot-1

If I add one extra optional variable, like this:
switch:
- platform: mqtt
command_topic: "/house/switch1/command"
state_topic: "/house/switch1/state"

I always get the message:
Entity not available: switch.mqtt_switch

It had always worked fine in a previous version, but it is broken now.
My current version is: Home Assistant 0.107.0.dev20200311

Hopefully someone is familiar with this problem and can help me out here.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles