Alert after change to mobile platform

Hi,

I’m very happy about using Homeassistant in a docker container, all is working as expected but only this Alert service does cause problems…

In the past(without docker) it was working as expected but with the docker containers it stopped. In the hass.io container the time is UTC, the HA time is UTC+1.

The Alert does not send any notification, I’m running version 0.10, normal notifications are received without problem on IOS.

Questions

  • Is the Alert suppose to work in docker containers, or do I have to wait for updates?
  • Do I have to adapt the UTC time in the hass container to be the same as the Pi / HA

Thanks already and best regards from the Netherlands,

Peter

Are you starting the docker container correctly, I.E running it with -v /etc/localtime:/etc/localtime:ro? Is your OS timezone set? Is your HA timezone set?

Hi Petro,

thanks for the fast response,

my timezone settings
in configuration.yaml ==> time_zone: Europe/Amsterdam

“date” at Raspberry console ==> Mon Jan 13 14:24:07 CET 2020

date in the hassio_supervisor container ==> on Jan 13 13:25:24 UTC 2020

One hour difference between hassio_supervisor and pi / HA

I’m not sure what you mean with /etc/localtime… can I check this in portainer?

Unfortunately, it’s Hassio, which doesn’t offer such flexibility.

What ALERT service is @Peter_wetten referring to?

1 Like

Ok, I guess I need some clarification. Are you running Home assistant on docker or Hassio on docker? They are not the same. I’m guessing hassio because you have the supervisor, but this information is important. If that’s the case, then you shouldn’t worry about that ‘starting the docker container’ comment because the supervisor does it for you.

Anyways, are you familiar with the template editor?

Also, for what it’s worth. The supervisor only outputs and thinks in UTC.

screencapture of portainer, these are the items I’m running

I did use templating for automations before, can it help for Alert?

In the past on Hassbian I did run alerts for lights in garage and dehumidifier operating for too long, it was very handy to have…

Did search the internet and found info about time problems in Alert, that’s the reason for this question on the experts to know if it is repairable in the current version 0.106 or better to wait…

Thanks for the response !

The Alert integration should be using your HA timezone and time/date info.

place this in the template editor

{{ now().tzinfo }}
{{ now().astimezone().tzinfo }}

and post what you find.

Europe/Amsterdam
CET

Then everything is good on your system.

Did try to make the above code functional again, unfortunately no success…

Do you think this Alert could work in the current HASS / HA

Thanks again …

are you sure your binary_sensor is updating? This configuration looks correct aside from you trying to template the ‘name’.

Hi Petro, flamingm0e,

after you telling the alert should work and the code seems correct I did investigate some further and decided to erase all iPhone entries.

reinstall the app on my iPhone and restart hass.

Now it’s working as before !

Many thanks !

Peter

ps the template in the name shows the amount of time the lamps are on in the push notification

I understand, but according to the docs the name field is not a template field.