-
Notifications
You must be signed in to change notification settings - Fork 58
-
how transfer yaml to pyscript ?
'''
action: number.set_value
data:
value: 42
target:
device_id: 7cdbbccae7e64aec080471fef1c465f2
'''
pyscript:
number.set_value(value=42,device_id="7cdbbccae7e64aec080471fef1c465f2")
or
data["value"] = 42
data.value = 42 is wrong :-)
or
data = {"value":42}
short : how does nested options work
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
ALERTua
Jun 25, 2025
number.set_value(entity_id='number.my_number', value=42) number.set_value(device_id='7cdbbccae7e64aec080471fef1c465f2', value=42) number.my_number.set_value(value=42)
Replies: 1 comment
-
number.set_value(entity_id='number.my_number', value=42) number.set_value(device_id='7cdbbccae7e64aec080471fef1c465f2', value=42) number.my_number.set_value(value=42)
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
0 replies
Answer selected by
melmager
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment