We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a time helper entity set up. I want to change the time in the pyscript code. I've tried calling the service as below;
input.datetime.battery_charge_start.set_datetime(time="08:01:00") service.call("input_datetime", "set_datetime", entity_id="input.datetime.battery_charge_start", time="08:01:00") input_datetime.set_datetime(entity_id="input.datetime.battery_charge_start", time="08:01:00")
Neither work. However for another helper, this works;
input_number.set_value(entity_id="input_number.battery_monitor_start_secs", value=34)
I need a little help please.
The text was updated successfully, but these errors were encountered:
Had the same problem. After quite a few tries, found out how it works (no info in the docs).
First, you have a typo. Change entity_id="input.datetime.battery_charge_start" into entity_id="input_datetime.battery_charge_start"
Second, for those looking to set a date or a datetime, use set_datetime(entity_id=xx, date=xx) or set_datetime(entity_id=xx, datetime=xx) accordingly
Sorry, something went wrong.
Here's the cure for you: https://github.com/dmamelin/pyscript_autocomplete
Interesting... A bit convoluted to use, but definitely useful I'll give it a try thanks !
No branches or pull requests
I have a time helper entity set up. I want to change the time in the pyscript code. I've tried calling the service as below;
input.datetime.battery_charge_start.set_datetime(time="08:01:00")
service.call("input_datetime", "set_datetime", entity_id="input.datetime.battery_charge_start", time="08:01:00")
input_datetime.set_datetime(entity_id="input.datetime.battery_charge_start", time="08:01:00")
Neither work. However for another helper, this works;
input_number.set_value(entity_id="input_number.battery_monitor_start_secs", value=34)
I need a little help please.
The text was updated successfully, but these errors were encountered: