Skip to content
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

MQTT Retain Flag? #58

Closed
AdmiralRaccoon opened this issue Mar 16, 2021 · 4 comments
Closed

MQTT Retain Flag? #58

AdmiralRaccoon opened this issue Mar 16, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@AdmiralRaccoon
Copy link

Hi there and thanks for this great piece of software. :-D

I´m not a mqtt expert, so I don´t know if this is a MQTT issue, rather than one of hass-workstation-service:

Is it possible to retain the value, for example, "LastActiveSensor", so I could see when the device was last active/online?
Right now, when the device goes to sleep or was shutdown, the sensor value goes to "unavailable" or "unknown".

Thank you and keep up the good work

@sleevezipper
Copy link
Owner

Thanks for the kind words!

Someone else mentioned this too (on the Discord I think) and I think this would be great!

@sleevezipper sleevezipper added the enhancement New feature or request label Mar 16, 2021
@nerdosity
Copy link

everyone is just here because of this sensor!
I am just dealing with home assistant error, I was using this in an automation but the template{{ (as_timestamp(states.sensor.workstationonline.state) - (as_timestamp(now())))|int|abs > 300 }} returns error when the PC is turned off.

@sleevezipper
Copy link
Owner

Hi @nerdosity,

Did you figure it out in the meantime? If not, could you create a new issue?

@sleevezipper
Copy link
Owner

This has been fixed and will be in the next release!

@sleevezipper sleevezipper added the next release The issue has been fixed but has not been released yet label Sep 4, 2021
@sleevezipper sleevezipper removed the next release The issue has been fixed but has not been released yet label Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants