Commit Graph

58 Commits

Author SHA1 Message Date
Cathal O Cuimin
a7a91c9dfe
Add unit of measurement for rig speed 2023-07-03 17:52:53 +02:00
Cathal O Cuimin
6b85fe5e70
Add support for all currencies 2023-07-03 17:52:43 +02:00
Evan Lawrence
0e94842c9d
Added switches for each device which allow for enabling/disabling mining.
very basic, needs testing.

* To do: Set switch to reflect the current state on init. (Currently defaults to off after HA reboot.)
* Occasionally the custom component fails to load on HA start.  Usually fixed by restarting HA.
* When switches are toggled occasionally a false error is reported.  This could be due to async call.  The desired behavior still occurs though.
2023-07-03 17:51:08 +02:00
Newlance
bbe51fef8d
Update README.md 2023-07-03 17:47:22 +02:00
Evan Lawrence
991755ee4e
- Device switch status now properly reflects status of mining device (there is a delay for the status to update into Home Assistant)
- Added property to switches which contains the last response from the API.  This will reflect "Success!" or otherwise the error message that was provided by the API.
- Added additional properties 'status' and 'device' to switches.
2023-07-03 17:47:11 +02:00
Pascal Berski
2aca201d3b
added icon power 2023-07-03 17:45:11 +02:00
Pascal Berski
53f35f04ea
added class DevicePowerSensor 2023-07-03 17:45:03 +02:00
Pascal Berski
829d1cd3f7
added DevicePowerSensor (sensor.py / nicehash.py) 2023-07-03 17:44:54 +02:00
Pascal Berski
dde8ba7417
Update README.md 2023-07-03 17:44:45 +02:00
Pascal Berski
454ee1008d
Update README.md 2023-07-03 17:43:03 +02:00
Pascal Berski
0974f5daa4
deleted unnecessary zeros in device hashrate 2023-07-03 17:42:40 +02:00
Pascal Berski
df9651b148
change device_id to rig_id+device_id 2023-07-03 17:41:52 +02:00
Ben Campbell
ff944ade69
Use reason_phrase
https://www.python-httpx.org/api/
2023-07-03 17:39:18 +02:00
Brian Berg
b3a8c864b9 chore(nicehash): update version 2021-06-18 16:14:30 -04:00
Brian Berg
46f1346551 fix(nicehash): fix quickminer gpu temps
fix(sensor): handle no temps

    - remove unused parameter

    fix(nicehash): handle no devices
2021-06-18 16:11:54 -04:00
fufar
bbf0c7bb51
Add version (#7)
* Update manifest.json

Added version 1.0.0  - because cant find any version info
With next HA update addon stop working without it

* Update custom_components/nicehash/manifest.json

Decreased version to 0.1.0

Co-authored-by: Brian Berg <brianberg.se@gmail.com>

Co-authored-by: Brian Berg <brianberg.se@gmail.com>
2021-06-02 09:11:53 -04:00
Brian Berg
72543f69f6 feat(sensor): add rig algorithm and speed sensors 2021-01-20 11:34:09 -05:00
Brian Berg
a9816914d9 fix(sensors): fix recent payout sensor value
- to be payout amount minus mining fee
2020-08-02 17:56:17 -04:00
Brian Berg
42a30ce201 chore: add debug logging 2020-07-12 23:25:38 +00:00
Brian Berg
dc41e2e3ae docs(readme): update installation instructions
- update summary
- add preview image
- list available sensors
- improve installation instructions
2020-07-12 19:21:38 -04:00
Brian Berg
cc11a697a8 feat(sensors): disable balance sensors by default 2020-07-12 22:43:53 +00:00
Brian Berg
cc9410510b refactor(sensors): refactor rig temperature
- remove rig temperatures attribute
2020-07-12 21:03:16 +00:00
Brian Berg
f332fa3bf5 refactor(sensors): create common rig sensor entity 2020-07-12 20:25:50 +00:00
Brian Berg
ecea93959c feat(sensor): simpler device names
- refactor sensor params
- simpifiy rig/device id attributes
2020-07-12 20:20:43 +00:00
Brian Berg
ea5816ea20 fix(sensor): fix device sensors not updating 2020-07-12 18:02:47 +00:00
Brian Berg
b100a15b9d feat(RecentMiningPayoutSensor): update name
- tweak class description
2020-07-11 23:46:38 -04:00
Brian Berg
b28e6ea554 docs: update readme/info 2020-07-12 02:51:58 +00:00
Brian Berg
df20a0686d refactor: replace requests_async w/ httpx 2020-07-12 02:40:39 +00:00
Brian Berg
74d9f14439 docs: minor updates
- punctuation
- reference configuration template
- update configuration examples
2020-07-11 21:28:48 +00:00
Brian Berg
7def679730 chore: add template configuration.yaml
- remove configuration.yaml
- hoping to avoid committing sensitive info
2020-07-11 19:04:10 +00:00
Brian Berg
2cdbc21fdd fix(RigStatusSensor): remove unit of measurement 2020-07-11 18:57:54 +00:00
Brian Berg
b4ba0bf5cc refactor: rename data coordinators file 2020-07-11 18:56:56 +00:00
Brian Berg
78fc79e7a7 refactor(sensors): minor simplification 2020-07-11 18:41:22 +00:00
Brian Berg
eefd191e51 feat(sensor): add recent payout sensor
- fetches payouts every hour
- displays most recently created in BTC
2020-07-11 18:40:42 +00:00
Brian Berg
5c99904287 refactor(sensors): update params/types
- remove device number from rig status sensor
2020-07-11 12:54:16 -04:00
Brian Berg
24488a8eb7 refactor(data_coordinators): rename 2020-07-11 16:17:02 +00:00
Brian Berg
92bd188ea9 docs(readme): remove folder structure
- not fun to maintain
2020-07-09 02:25:36 +00:00
Brian Berg
2747966501 docs: update readme/info config example 2020-07-09 02:24:21 +00:00
Brian Berg
4438bd3d6a refactor(sensor): add classes
- add mining rig and device classes
2020-07-09 02:20:55 +00:00
Brian Berg
743fd0febf refactor(sensor): rename sensors 2020-07-09 00:31:02 +00:00
Brian Berg
a31d524e10 refactor(sensor): separate sensors 2020-07-09 00:05:11 +00:00
Brian Berg
1f33d3e05d feat: allow disabling rig/device sensors
- via "rigs" and "devices" configuration options
- both default to false
2020-07-08 23:50:44 +00:00
Brian Berg
d5f9f56f98 feat(sensor): add device sensors
- status, algorithm, speed, temp, load, rpm
2020-07-05 18:02:46 +00:00
Brian Berg
7f79e0e739 chore(sensors): update docs
- fix typo
2020-06-20 20:09:17 -04:00
Brian Berg
4b79b3f80f docs: update/format readme and info
- apply auto-formats
- tweak configuration example
- update info to match readme
- update directory files
2020-06-17 19:42:30 -04:00
Brian Berg
945a50dff3 feat(sensor): add rig status sensors
- refactor rig temperature sensor
  - include state value in attributes
  - remove debug logs
2020-06-17 03:18:24 +00:00
Brian Berg
04820e1aa9 feat(sensors): record all device temperatures
- stop attempting to ignore inactive/disabled devices
- remove active devices count attribute
- minor import cleanup
2020-06-17 02:07:23 +00:00
Brian Berg
7ca95d8ca2 fix(sensors): fix balance sensor attributes
- not in same currency as state
2020-06-17 02:05:30 +00:00
Brian Berg
f0fa8ede74 docs(nicehash): update references 2020-06-17 01:47:11 +00:00
Brian Berg
96498e580e refactor: split out data coordinators and sensors
- remove unused imports
2020-06-17 01:46:53 +00:00