zewelor / bt-mqtt-gateway

A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
MIT License
549 stars 116 forks source link

wrong time on eq3 thermostat (wrong time zone?) #239

Open renarena opened 2 years ago

renarena commented 2 years ago

I've read the Troubleshooting Wiki, my problem is not described there and I am already using the specified minimum bluez version.

Describe the bug as soon as i start bt-mqtt-gateway my thermostats time is off 1 hour. if i stop it, the time stays correct after changing it.

Expected behavior thermostats use correct time

Config

/home/pi/.config/bt-mqtt-gateway/config.yaml   [B---]  0 L:[  1+ 0   1/ 41] *(0   /2197b) 0109 0x06D                                        [*][X]
  workers:
    thermostat:
      args:
        devices:
          kitchen: 
            mac: xxxxxxxxxxxxxxxxx
            discovery_temperature_topic: kitchen/temperature       
            discovery_temperature_template: "{{ value_json.temperature }}"  
        topic_prefix: thermostat
      topic_subscription: thermostat/+/+/set
      update_interval: 60

Debug gateway logs run gateway.py with -d switch and paste formatted output log

Server (please complete the following information):

Additional context this may cause the problem - it does not consider the timezone set in raspbian: https://github.com/rytilahti/python-eq3bt/issues/25

renarena commented 2 years ago

Does this change something? https://www.home-assistant.io/blog/2021/12/11/release-202112/#breaking-changes

The timestamp_local and timestamp_utc template functions/filters have changed their output format. The timestamp is now formatted to iso standards and contains timezone information.

Previously a timestamp from these would look like: 2016-07-21 16:39:04. Now it is formatted as: 2016-07-21T16:39:04+01:00.