Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105753

Help needed to set a Input Number helper to half an entity value in a script

$
0
0

I have this in a script that works

alias: Test
sequence:
  - service: input_number.set_value
    data:
      value: 200
    target:
      entity_id: input_number.half_current_power
mode: single

And I have this in my template editor that works

{%
 set half_power_level =
(states('sensor.grid_power_power') | float /2) | round (2)
%}
{{half_power_level}}

I want to take the sensor.grid_power_power divide by 2 and store it in the input_number.set_value helper

So close but so far

Regards Dave

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105753

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>