Giter Site home page Giter Site logo

Comments (8)

b-rowan avatar b-rowan commented on June 3, 2024

Can this be compared to the switch entity? Technically the switch state is set by the result of is_mining in pyasic, which should indicate whether the miner is in shutdown mode or not (except in the case of #294, which is a bug) .

from hass-miner.

Sjors avatar Sjors commented on June 3, 2024

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.

from hass-miner.

b-rowan avatar b-rowan commented on June 3, 2024

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.

from hass-miner.

Sjors avatar Sjors commented on June 3, 2024

I care mostly about whether it's confirmed online. Whether it's offline, unreachable, powered off is less important.

from hass-miner.

Sjors avatar Sjors commented on June 3, 2024

So perhaps whenever a poll succeeds the sensor is set to Online, when it fails it's set to Offline.

from hass-miner.

b-rowan avatar b-rowan commented on June 3, 2024

Does v1.1.1rc1 fulfil these requirements? You should be able to check if the miner is available?

from hass-miner.

Sjors avatar Sjors commented on June 3, 2024

When I try to add this as a condition to an automation, I don't see "available" in the dropdown, at least not when selecting the device.

Scherm­afbeelding 2024-01-25 om 19 44 55

from hass-miner.

b-rowan avatar b-rowan commented on June 3, 2024

You should be able to do it on the entity, doesn't seem like devices support unavilable?

One of these should work?
image

image

from hass-miner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.