Coder Social home page Coder Social logo

ha-bobcatminer's Introduction

ha-bobcatminer

ha-bobcatminer

Introduction

This is a Home Assistant integration for the Bobcat Helium Miner, allowing you to monitor your Bobcat miner's state including running state, temperature and public IP.

Installation!

Numerous installation options are available.

HACS (Recommended)

You can install the integration through HACS directly. The integration can also be updated through HACS.

Custom Integration Wheels

Add a file called bobcatminer.json in your custom_components directory with the following content.

{
  "name": "Bobcat Miner",
  "owner": ["@ardevd"],
  "manifest": "https://raw.githubusercontent.com/ardevd/ha-bobcatminer/main/custom_components/bobcatminer/manifest.json",
  "url": "https://github.com/ardevd/ha-bobcatminer/"
}

Manual

  1. Download this repo by either of the following method
  1. Copy or link this repo into Home Assistant custom_components directory

Configuration

Click "Add integration" from Home Assistant, search "Bobcat Miner", click to add.

Enter the IP address asssociated with the Bobcat miner. The diagnoser needs to be accessible from Home Assistant for the integration to work.

After setting up, miner status should be available in Home Assistant.

ha-bobcatminer's People

Contributors

ardevd avatar genericstudent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

genericstudent

ha-bobcatminer's Issues

Remove chain sync based features

Bobcat miners are now updated with firmware that removes chain syncing completely. Hence, there is no longer need for chain sync related sensors.

No Values for bobcatminer every few days

Every few days , the bobcat miner stops sync value with home assistant , i tried to add to another home assistant to check , and the result is the same , the device is working fine and the network between the two devices are monitored without any downtime , any advise ?

https://ibb.co/NmjgZhs

It doesn't start

It never goes past the "Please wait while Bobcat Miner is being setup". It doesn't even ask me for the ip address.

Async refactor

bobcatpy is now fully asynchrounous. Should refactor the integration accordingly and do some much needed cleanup while I'm at it.

Error during install

Hello!

I installed the integration via HACS. I went to add an integration and searched for "Bobcat Miner". I click the name and then receive a popup saying:

ERROR
Config flow could not be loaded: {"message":"Invalid handler specified"}

Specify Integration type

Each integration must now provide an integration_type in their manifest, that describes its main focus.

No more updated data after a few hours

Hello,

Thank you for your work and sharing !

After few hours, plugin no longer update data, I have to restart my home assitsant server and it starts again.

Platform : Intel NUC i3, Vmware Esxi, Hassio OS (version : 5.10.108)
Home assistant version : 2022.4.3
Bobcat is wired connected

bobcat-hassio

Feature Request - Alternative Miner Integration?

Looks cool, sadly cannot use because I don't use the Bobcat Platform - But seems like data would be pretty brand agnostic since all Helium miner's have to meet some pretty strict standardization to be operable. With that said, are there any plans at this time to widen the scope of acceptable miners for this plugin? Or perhaps pull directly from the Helium central Web API on their website? Willing to fork if not. That said, project looks cool.

Integration is choking after HA Core is updated to 2022.4.1

Logger: custom_components.bobcatminer
Source: custom_components/bobcatminer/init.py:36
Integration: Bobcat Miner
First occurred: 11:35:50 AM (109 occurrences)
Last logged: 1:56:40 PM

Unexpected error fetching bobcatminer data: invalid literal for int() with base 10: 'types.API\r'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/bobcatminer/init.py", line 36, in _update_method
return await hass.async_add_executor_job(bobcat.status_summary)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/bobcatpy.py", line 56, in status_summary
summary['miner_height'] = int(miner_status['miner_height'])
ValueError: invalid literal for int() with base 10: 'types.API\r'

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.