This is a tricky one for a guru…
- I wish to implement a table of values, where each row has a key/value pair.
- Each key is a temperature value, range -5 to 15 step 1, i.e. -5, -4, -3,… 16.
- Each value is a temperature value range 30 to 50, step 1. i.e. 30, 31, 32,… 50.
- Keys cannot change value by the user.
- Values can by changed by the user (user inputs a number in the valid range)
- A lovelace card is needed to present the table as a 11 rows x 4 columns grid
- The first column is keys -5 to 5 (11 rows)
- The second column is is values as input by the user default to 30.
- The third column is keys 6 to 16 (11 rows)
- The fourth column is values as input by the user default to 30.
- A sensor and code is needed that takes the value of an existing sensor.outdoor_temp and looks up that value in the list of keys and returns the corresponding value from the table.
This one really hurt my head as I tried to work out setArray, sensor, attributes … couldn’t work it out
EDIT:
I did look at this for the input card but it doesnt give visual indications of what config does and to be honest it looks an overkill
3 posts - 2 participants