On the function page, I install a Conditional Controller.
Under the Conditions, I add a Measurement (Multiple Past).
The description states that: [Condition] Measurement (Multiple, Past): self.condition_dict(“333ea13d”) returns a list of dictionaries with “time” and “value” key pairs found within the Max Age, otherwise returns None. Example: [{‘time’: ‘2019-10-23T13:11:21.050844929Z’, ‘value’: 36.476}, {‘time’: ‘2019-10-23T13:12:51.025718993Z’, ‘value’: 36.476}]
Instead of a date time formatted field, I receive a timestamp:
self.logger.info(f"catnip_last_operated_dict: {catnip_last_operated_dict}")
![]()
Under the Import Python Code, I have imported: from datetime import datetime, date, timezone
I have read the Supported Functions and searched the forums.
How do I convert the timestamp to a readable format of date time?
