Hi all,
I have a script that is called from another script and an automation to set the time in an input_datetime. I can get it to work in an automation (there are plenty of examples, but it isn’t really an option) but not in the script. I’m getting a service call error, and I’m having trouble figuring out the exact configuration syntax.
Error executing script script.sleep_timer_set_time. Invalid data for call_service at pos 1: extra keys not allowed @ data['data_template']
Always had the impression that it was different…anyway I did solve it with your suggestion and in the process found that the main mistake was in the entity name of the Input_datetime, which was wrong in the script. Result is now:
VDRainer, you’re correct. Adding times together first which are in timestamp format, thus numbers that can be added together, which is not a concontenations. The input_datetime even though fully invisible and not used requires seconds - which makes it rather more complicated for the filters.