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

Add "online" state to hub status? #220

Open
FlaMike opened this issue Apr 10, 2023 · 1 comment
Open

Add "online" state to hub status? #220

FlaMike opened this issue Apr 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@FlaMike
Copy link

FlaMike commented Apr 10, 2023

New Feature

My hub goes offline regularly. The folks at Weatherflow have not been able to resolve my issue. Unplugging the hub and plugging it back in brings the hub back online.

If there was an indicator as to the hub's online status available via weatherflow2mqtt, I could create an automation that toggles the hub's power using a smart plug & get the hub back online. I've looked at the status reported by the hub in weatherflow2mqtt, but have not found an indicator of the hub's online status.

If it's possible to add an online indicator I would appreciate it greatly.

Thank you for your consideration and this super project!

Additional context

No response

@FlaMike FlaMike added the enhancement New feature or request label Apr 10, 2023
@craigwitter
Copy link

craigwitter commented Jun 13, 2023

Assuming you're using HomeAssistant, you should be able to make a template sensor for this in the meantime. It looks like the status entity updates frequently. Here's an example that would create a binary_sensor showing on/off if the device has updated the status value in the last 10 minutes

`- platform: template
sensors:
weather_station_status:
friendly_name: "Weather Station Status"
device_class: problem
value_template: >
{% if (states.sensor.tempest_st_00007277_temperature.last_updated | as_local) > (now() - timedelta(minutes=10)) %}
false
{%else%}
true
{%endif%}

`

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

2 participants