I have just started to use Home Assistent, so maybe this question is very basic. But even if I’m a reasonable skilled programmer it takes time to figure out how to use all options i Home Assistent…
I would like create a “user input card” from which I can fetch a treshold value to be used in automations. The “card” should provide two options. You select which one by means of a “switch” (boolean). Either you specify an absolute value (float) or you are able to enter a percentage value (0 - 100%). With the first option the treshold value (available for automations) is the same as the entered absolute value. The second option will yield a value will take the value from an entity and increase that value by the specified percentage value.
So my “card” needs two inputs, one input number and one input boolean and need to to combine those and find a proper way “export” the right value. I would also like to trigger an automation once you change anything.
If someone has an example to share I would be very grateful. I used ro program web pages with PHP and Javascript, so it takes some time to fully grasp the Home Assistent paradigm…