From last week i have been trying to write a script using set up action. I have a number and i tried to set it up using a sensor value .
Below I wrote the script
I tried this code and in u. I copy this code. sequence:
, - action: number.set_value
, metadata: {}
, data:
, value: “2 Left curly bracket states(‘sensor.zona1min’) | float(0) * 10 2 Right curly bracket”
, target:
, entity_id: number.sprinkler_a
, alias: Set number volume.
, description: 2 Quote
, , Edit box I want the script, but the number is not changing. It’s the same.
Home Assistant’s Script and Automation Editors have two editing modes:
Visual
YAML
Switch the mode from Visual to YAML, copy the displayed YAML code and paste it into your forum message. Then format it by following the instructions in guideline #11 in the FAQ.