I’m not sure if this is possible but I have an automation I’m trying to build.
I could give it several choices to choose from but it would be an extensive list.
I’m trying make limit amps out of a device based on battery state.
100%: 45
99%: 44
98%: 43
97%:42
96%:41
95%: 40
94%: 40
93%: 40
92%: 40
91%: 40
90%: 40
89%:39
88%:39
87%: 38
86%: 37
85%: 36
84%: 35
83%: 34
82%: 33
81%: 32
80%: 31
79%: 30
78%: 29
77%: 28
76%: 27
75%: 25
74%: 24
73%: 20
72%: 16
71%: 16
70%: 16
69%: 16
68%: 15
67%: 15
66%: 14
<65%: 6 Amps
<50%: OFF
Is there a better way to make an automation to pull from a database or table rather than a very long choice list in an automation?
Trying to plan ahead if i need to make several changes in the future.