enes-oerdek / home-assistant-helium-integration Goto Github PK
View Code? Open in Web Editor NEWHelium Integration for Home Assistant
License: GNU General Public License v3.0
Helium Integration for Home Assistant
License: GNU General Public License v3.0
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:
Wallet App Unclaimed:
Wallet App Balance (Claimed)
(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).
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
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.
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?
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
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
As the Titel ๐
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.