Good evening everyone.
I hope I’m in the right place.
I want to create the current information for my K1Pool (Miner) as sensors in HA.
I have managed to do this so far that it pulls the values from K1Pool and outputs them as sensors in HA.
But unfortunately I can’t get it to show me the values as a graphic when I open the sensor. (Like with energy sensors, for example)
Currently I only get them as a timestamp.
name: “K1Pool USD Price (KAS Price)”
value_template: ‘{{ value_json.pool.coinPriceUsd }}’
If someone would like to use this, it is of course free for everyone
I have also tried to achieve something with these but when I enter them I only get that it no longer works.
unit_of_measurement: ‘W’
state_class: measurement
device_class: power
(I realize that these are current attributes but I just wanted to get a graph somehow and if it doesn’t give me the values in the correct unit so be it…) but unfortunately it didn’t work either).
I would be very happy if someone could help me here.
Yes, and strip the unit of measurement from the data. The data is a string containing numbers and text, you need numbers only for the state, and the unit of measurement must be set in the sensor.
Thank you very much for the quick feedback.
Unfortunately, I don’t quite understand what you two
want to tell me here and what I should add or remove.
Can you add your suggestion to my yaml template?
This would make it easier and better for me to understand what exactly needs to be done and, above all, how exactly it needs to be done.
Thank you very much and have a nice day.
Greetings