New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add all values to HA? #1
Comments
Hi, this is a custom integration while your request is on displaying data on the frontend, which is out of scope for this repo (however it would be nice to have). Until I come up with something and update the README with an example you may experiment with examples from one of my other custom integration met_alerts_hu. The approach should be similar: parse through the list provided by the water_quality attribute and display the name if the state of that element is "out of range". |
Added an example of a conditional custom button to the README. |
Thank you for the sample code, but it give me error when I try to use it. Here is the error code:
|
Fixed the relative indentation. |
Thank you. I copied your code into a lovelace card and it shows nothing. What should be displayed in the card? |
The example is a conditional card, so if there are no elements above the threshold, the state of the sensor will be 0 and the conditional card will not appear. |
I noticed this condition. I tried to change the code to list all the values but for some reason it didn't worked. See below my modified code.
What am I doing wrong? Can you post a card configuration which lists all values without condition? |
Besides the conditional part, the for loop in the label also uses the state of the sensor, which will be 0 in case there are no elements above the threshold. You may remore the conditional card part and replace states['sensor.water_quality_fvm'].state in the for loop with a numberical value (e.g. 8). Bear in mind that the card won't be able to display more than 4-5 elements. |
Hi! First of all thank you for this custom component. I have set it up in my HA and it extracts the data for my region (Budaörs). How can I add all these sensor values easily to my HA? If I add the sensor to an entity or sensor card it shows only one value.
Can you post a template which extracts all the values nicely in a card? Eventually can I have the values color sensitive depending on their status: below/above or inside/outside limits?
Thank you for your support.
The text was updated successfully, but these errors were encountered: