enkama / hass-variables

Home Assistant variables component
92 stars 12 forks source link

Cannot create a timestamp variable #110

Closed skipper-83 closed 10 months ago

skipper-83 commented 11 months ago

Hey there! Thanks for this great helper integration!

I might be doing something wrong, but I can't seem to be able to make a timestamp variable. I keep getting this error on config page 2:

afbeelding

does it perhaps get a long data-type from the config script?

edit: in the screenshot it seems i did not enter a date: i did. If I do not, I get this error:

afbeelding

kind regards, Albert van Andel

Snuffy2 commented 11 months ago

Hmmmm.... I'm not able to reproduce this.

If I set a Date and Time it creates it just fine.

2023-12-21_19-14-32 661 2023-12-21_19-14-48 747

Additionally, if I leave the Date blank, it also creates it but with a State of Unknown.

2023-12-21_19-24-58 226 2023-12-21_19-26-02 346

Anything in the HA logs?

skipper-83 commented 11 months ago

That's a quick response! Nothing in the logs unfortunately. I do run HA in a Docker container on a Synology NAS, could that be of influence?

Snuffy2 commented 11 months ago

No, I don't think it being run in a Docker on Synology would be the cause.

  1. Are you manually typing in the Date or using the Date picker?
  2. Can you show me a screenshot of Page 2 with the date and time filled in before you click submit?
  3. I see your timezone offset is +0100. What country are you in (so I can try to reproduce)?
  4. Also, please enable debug logging. There may be some more hints in the debug logs.