I have a sensor that has an attribute with a UNIX timestamp in it. Using a template I can retrieve the attribute into a template as follows:
I want to put this into an automation that I have triggering correctly, 3 hours before the event or when an event is created/moved and put it into the format of an android intent to set an alarm, but I don’t know how to create the template from the UNIX timestamp:
service: notify.mobile_app_nathaniel_mobile data: message: command_activity data: tag: android.intent.action.SET_ALARM group: "android.intent.extra.alarm.HOUR:%H,android.intent.extra.alarm.MINUTES:%M,android.intent.extra.alarm.MESSAGE:Leave,android.intent.extra.alarm.RINGTONE:Roller Disco,android.intent.extra.alarm.SKIP_UI:true"
Any help would be appreciated