Option for setting mqtt not to retain state...
mattlward opened this issue · 2 comments
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I would like to use your card in a conditional card, some of my pi's are not on all the time and I would like to be able to hide them from the dashboard when they are not up. I have set the conditional to be the following...
condition: state entity: sensor.rpi_ts_pi_home_rpi_monitor_ts_pi state_not: unavailable
Sorry, can't get this to format correctly...
But it never becomes unavailable as the data is retained from the last operational state.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to see the above sensor become unavailable after the duration of the polling interval is exceeded.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I could maybe set up a ping sensor to decide when the unit is down.
Additional context
Add any other context or screenshots about the feature request here.
@bsimmo is correct. The daemon publishes .../status
endpoints that contain the live up/down state [online|offline]. You should be able to condition your cards to hide if the status is not online
.
The two endpoints look like this:
{base_topic}/sensor/{sensor_name}/status
{base_topic}/command/{sensor_name}/status