Giter Site home page Giter Site logo

enes-oerdek / home-assistant-helium-integration Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 5.0 427 KB

Helium Integration for Home Assistant

License: GNU General Public License v3.0

Python 100.00%
helium helium-mining helium-network home-assistant iot solana

home-assistant-helium-integration's People

Contributors

enes-oerdek avatar viper5000 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

home-assistant-helium-integration's Issues

Unclaimed Rewards Remain Unclaimed after Claiming

Loving this custom component, great work!
Claimed all rewards over a week ago, and figured this was a timing thing. However the Unclaimed Reward sensor continues to grow daily and continues to include the rewards claimed over a week ago, no longer matching my wallet and miner numbers.

Example:

Miner & Wallet Integration:

image

Wallet App Unclaimed:

IMG_0970

Wallet App Balance (Claimed)

IMG_0969

(The difference in the total integration of 41,923 and the sum of the Wallet App of ~47k is the airdrop of IoT at the launch of the Solana chain).

Detection of new miner

How long does it take to recognize new devices I installed a new miner 4 days ago it has earnings but neither the unclaimed rewards or the miner is showing up

Is their a way to manually update the integration?

Also what about offline devices they don't show up I guess because they don't earn anything but they should still belong to the wallet

Anyhow thanks for the amazing integration I bet this will be really good over time

Helium Stats and prices no longer working?

Since Aug. 16th. the Helium stats and prices are no longer working. The last updates fixed the other integration entities, but price and stats became inactive since.
Any info on that?
Screenshot 2023-08-25 at 14 04 43
Screenshot 2023-08-25 at 14 04 11

Helium IOT and MOBILE stats unavailable

Hi Enes

I'm running the latest version 2.5.1. I noticed since 6 Sept 12:00 GMT+2, the Helium Stats IOT and MOBILE are unavailable. All other entities are working fine.

Screenshot 2023-09-08 at 10 01 42

Hotspot unclaimed rewards fluctuating

I'm on version 2.5.1.
Since yesterday 7 September, the Hotspot unclaimed rewards have fluctuated between 150,000+ and the actual value of ยฑ331 IOT.

Screenshot 2023-09-08 at 10 05 51

Provide backend API code to be able to self-host

Reference: #3 (comment)

Creating it as an issue so it doesn't get lost in the comments.

With all things crypto, it would be nice to be able to self host the code for this integration and not be dependent on somebody else their hosting being available.

Error all entities unavailable

I have a new error all entities are unavailable integration version 2.4.3

error in the log

Logger: homeassistant.components.sensor
Source: custom_components/helium_solana/api/backend.py:17
Integration: Sensor (documentation, issues)
First occurred: 06:31:33 (2 occurrences)
Last logged: 06:34:41

Error while setting up helium_solana platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 362, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/helium_solana/sensor.py", line 77, in async_setup_entry
sensors = await get_sensors(wallets, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/helium_solana/sensor.py", line 128, in get_sensors
response = await api_backend.get_data('hotspot-rewards2/'+str(wallet))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/helium_solana/api/backend.py", line 28, in get_data
response = await asyncio.to_thread(self.http_client, path, None, 'GET', headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/helium_solana/api/backend.py", line 17, in http_client
response.raise_for_status()
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://solana.oerdek.com/hotspot-rewards2/4PPtWfiDvfHktRJ5zkSwVE71N8pTEFDofzDG65x7m2mA

Also I tried removing the integration and adding it again but now same as yesterday the integration gets addedd but without entities?

Error while setting up helium_solana platform for sensor

Logger: homeassistant.components.sensor
Source: custom_components/helium_solana/api/backend.py:17
Integration: Sensor
First occurred: 7:13:30 PM (1 occurrences)
Last logged: 7:13:30 PM
Error while setting up helium_solana platform for sensor

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/helium_solana/sensor.py", line 77, in async_setup_entry
    sensors = await get_sensors(wallets, None)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/helium_solana/sensor.py", line 145, in get_sensors
    response = await api_backend.get_data('staking-rewards/'+str(wallet))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/helium_solana/api/backend.py", line 28, in get_data
    response = await asyncio.to_thread(self.http_client, path, None, 'GET', headers)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/threads.py", line 25, in to_thread
    return await loop.run_in_executor(None, func_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/helium_solana/api/backend.py", line 17, in http_client
    response.raise_for_status()
  File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://solana.oerdek.com/staking-rewards/xxxx

Not all miners showing up

Hi..Awesome Project BTW, thank you so much...I just set this up and its not showing all of my miners its showing like 3 of 4

Staking Rewards and Wallet Balance not Working

Hello Folks, it was a little calm recently, due to my recent change in employment. Soon I will be able to provide more updates and provide enhancements.

Since today morning, staking rewards are not calculated any more. This issue is known and will be tackled as soon as possible. Subscribe to this issue to be notified about updates.

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.