-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read an entity state #34
Comments
After restarting HA, there will indeed be a loss of entity status, which is caused by my mandatory specification of the retain flag. I will address this issue in future versions and let users choose their own implementation method |
Hi! |
This node does not store state, and by default, restarting HA will lose all states. But you can use the |
You mean Auto Discovery node? I'm using it already, but it doesn't help. That's why I'm thinking problem is not on the HA side. |
The new version has been fixed, check 'retain' in the device |
After one day, it seems this fix works perfectly so far! States has never been completely available after a night before this fix but now they are. |
I just bought you a cup of coffee, or tea if you prefer, with a cake! :) |
Is there way to read and publish and entity (switch, sensor, ...) state to the MQTT broker asynchronously i.e. not based on entity state change but an external trigger?
There is, for example, node "current state" node in the node-red-contrib-home-assistant-websocket palette for such reading. Unfortunately, my node-red installation is not on the HA machine but on the plain RPi OS client machine.
So, is this possible one or other way for entitity nodes created by the node-red-contrib-ha-mqtt?
Actual problem is, the HA on the other machine looses entities state always after some time period.
Some sensors like temperature ones one updated regular way and state is maintained, but for example switches and numbers state are not updated on the client machine.
For sure I can build some tricks to store states locally and update entities w/ a current state, but I'l like to use more elegant way.
This is also some relatated to my other issue about the retain flag. I guess if retain flag would be supported, HA would maintain entities state, but I'm not 100% sure.
The text was updated successfully, but these errors were encountered: