Open stablestud opened 2 months ago
PS:
self.mqtt_publish(topic=topic, payload=payload, retain = True)
doesn't seem to work either, as nothing is published when triggered, but this is for another issue... maybe my configuration is just simply wrong?
EDIT: fixed it, I had to convert the payload back to a string for it to work
What happened?
First of all, thanks for creating AppDaemon, my goto for HA automations!
I was trying to iterate over the mqtt broker stored/retained messages in my app via the topic 'homeassistant/#' on appdaemon startup. However retained messages are never delivered to it but only updates after the app has started.
When running appdaemon in DEBUG log level I can see on startup that it's receiving the retained messages from the broker, but it doesn't forwards them to my app.
Which is sad as I was trying to append the
force_update: True
value to all retained messages.Here is my appdaemon.yaml:
apps/apps.yaml
:This is similar to https://github.com/AppDaemon/appdaemon/issues/571 but in that issue the author seemed to have atleast received the retained messages on appdaemon startup
Version
4.2.2
Installation type
Python virtual environment
Relevant log output
No response
Relevant code in the app or config file that caused the issue
Anything else?
No response