-
Notifications
You must be signed in to change notification settings - Fork 19
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
Sensor: whether the device is online #298
Comments
Can this be compared to the switch entity? Technically the switch state is set by the result of |
Well the switch only says if it's mining, right? But when it's not mining I don't know if it's offline or online but not mining. |
Yeah, ok, this is sortof a subissue to 294, in that the device itself should just report as unfindable or fully offline when its powered off, but report not mining when its in shutdown mode, if that makes sense? In any case, ill try to figure out a full fix tonight. |
I care mostly about whether it's confirmed online. Whether it's offline, unreachable, powered off is less important. |
So perhaps whenever a poll succeeds the sensor is set to |
Does v1.1.1rc1 fulfil these requirements? You should be able to check if the miner is |
Maybe use HA |
This isn't really the problem, the issue is how to display it. I already know if the miner is offline ( |
Maybe make it a state attribute with the attributes mining, error, standby, offline? That would solve my issue too as I could just set the the machines values to zero if the state switched to offline |
I have a Home Assistant notification that reminds me to give the S9 power if electricity is cheap in the next couple of hours. I'd like to avoid that notification if it's already powered on.
I power it on manually, despite having a smart switch, because sometimes the PSU fans run but the board doesn't start. So I may need to try again a few times.
I could already avoid the notification by checking if the smart socket is on, or check if it consumes more than 7 watt (only PSU) and less than 15 (board probably working).
But it'd be nicer to just have a
binary_sensor
likes9_online
.The text was updated successfully, but these errors were encountered: