Hello,
first of all, im very happy to use home assistant, i switched from iobroker to openhab and now im finally here. Im trying to build my fronted and i want to see my ethereum mining stats.
So i try to build a custom sensor based on rest to get informations about my mining rig.
But it doesnt work, and i dont know how to find the problem, every sensor is unknown.
homeassistant:
customize:
sensor.amd01_status:
friendly_name: "AMD01"
icon: mdi:ethereum
sensor:
- platform: rest
name: AMD01
resource: https://api.minerstat.com/v2/stats/XXXXXXXXX/XXXXXXX
value_template: "{{ value_json.info.status }}"
json_attributes:
- info
- revenue
- mining
- platform: template
sensors:
info_status:
value_template: "{{ states.sensor.amd01_status.attributes.info.status }}"
info_uptime:
value_template: "{{ states.sensor.amd01_status.attributes.info.uptime}}"
revenue_day:
value_template: "{{ states.sensor.amd01_status.attributes.revenue.usd_day }}"
revenue_week:
value_template: "{{ states.sensor.amd01_status.attributes.revenue.usd_week }}"
revenue_month:
value_template: "{{ states.sensor.amd01_status.attributes.revenue.usd_month }}"
hashrate:
value_template: "{{ states.sensor.amd01_status.attributes.mining.hashrate.hashrate }}"
group:
amd01:
name: AMD01
entities:
- sensor.info_status
- sensor.info_uptime
- sensor.revenue_day
- sensor.revenue_week
- sensor.revenue_month
- sensor.hashrate