gjohansson-ST / pytrafikverket

python module for communicating with the swedish trafikverket api
MIT License
22 stars 7 forks source link

Wrong value for road temp #33

Closed dogmatic69 closed 2 weeks ago

dogmatic69 commented 1 year ago

I've had an alert on the roat temp for a few years now and recently I've started getting rogue alerts where the temperature is reported as 0'C but it's 30'C outside.

Looking into the code it seems there was some changes lately which is probably related as this is around the time it started.

The trace from the automation:

  to_state:
    entity_id: sensor.xxx_road_temperature
    state: '0'
    attributes:
      state_class: measurement
      unit_of_measurement: °C
      attribution: Data provided by Trafikverket
      device_class: temperature
      friendly_name: xxx Road temperature
    last_changed: '2023-06-19T09:07:46.249516+00:00'
    last_updated: '2023-06-19T09:07:46.249516+00:00'
    context:
      id: 01H39EJ0Y9KGNCRBZHG29M1QMA
      parent_id: null
      user_id: null
  for: null
  description: numeric state of sensor.xxx_road_temperature

image

github-actions[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!