Closed effelle closed 4 years ago
mqtt documentation mqtt source (message by IssueLinks)
Hey there @home-assistant/core, @emontnemery, mind taking a look at this issue as its been labeled with an integration (mqtt
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
The problem
Following @emontnemery PR #37371 we added the subscription to
homeassistant/status
to keep Tasmota devices in sync with Home Assistant without using any kind of automation (our PR 9096 ). Tasmota will receive the messages correctly and then will automatically send out a/STATE
topic for all our discovered devices present under Home Assistant but seems there is a race condition to be addressed. In all our tests even the fastest machine runing an HAss server took at least 12 seconds to be able to listen to a topic and that defeat a bit the pourpose of a Birth message. Using a simple automation, component loaded some seconds after the mqtt, shown Home Assistant is listening correctly after presenting the message "Home Assistant has started!" on Lovelace.Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
First part of the log, where the
homeassistant/status
will send itsonline
status:Tasmota received it and publish its unheard
/STATE
topic:Then after several seconds the automation fires and Tasmota
/STATE
topic is finally registered:Additional information
Since the time needed to have Home Assistant listening to a topic depends on the machine where it is installed (Pi or Nuc have different loading time) I can't add a precise delay in our firmware and would be nice have
homeassistant/status
published after Home Assistant will be ready to manage a subscription.Thanks,
Federico Leoni Tasmota Team
Support Information See Docs for more information. See Chat for more user experience. See Code of Conduct