MQTT, Binary sensors and unexpected states

Have you seen this thread?