I'm trying to write to a input_datetime helper with an Action node - but keep getting "HomeAssistantError: extra keys not allowed @ data['value']". I really don't get JavaScript.
The data coming from the node prior to the Action node is:
msg : Object
{ _msgid: "3d6978f0f9f965bd", payload: "2024-10-07T16:00:00+08:00", topic: "", data: object }
So I think the payload has the date and time correct - but how do I write the Action node to write it to the datetime helper?
So first the key is not value but one of the three above depending on the type of date/time you need to pass.
If we also look at the format of the actual value, it does not show iso datetime input, we need to format the value. Set the data field to J:Expression.