Envisalink causing MQTT binary_sensor not to appear [fixed in 0.29.4]

Hi,

I have two MQTT binary sensors, they always showed up before 0.27. Now it is random if it will show up or not when I restart HASS. I don’t see any errors or messages in the log. Here’s my config for them:

binary_sensor:
  - platform: mqtt
    state_topic: "home/remote1/get"
    name: "Kitchen Remote 1"
    qos: 0
    payload_on: "ON"
    payload_off: "OFF"
    value_template: '{{ value }}'
  - platform: mqtt
    state_topic: "home/remote2/get"
    name: "Kitchen Remote 2"
    qos: 0
    payload_on: "ON"
    payload_off: "OFF"
    value_template: '{{ value }}'

OK, after some more debugging, it seems that they only disappear when I’m using the “envisalink” component. If I comment out that section from my config, then the 2 binary_sensors show up.

Hi,
I am the developer behind the envisalink component, and i’ve been looking into this also. I’m not certain what’s going on yet, but I’ve noticed in my own environment that if I start up HASS without any web browsers open, or any services using the API- that everything works normally- the other sensors only seem to be effected when I have my browser open, and trying to update state while setup is going on.

My only guess is that perhaps something is trying to query the state of the sensors before setup is complete (setup does occur in a seperate thread).

Fixed in 0.29.4