core: Onvif integration is not picking up your Timezone

The problem

Environment

Home Assistant 0.108.3 HassOS 3.13 Onvif integration

Problem-relevant configuration.yaml

  - platform: onvif
    name: Gate
    host: 10.0.1.211
    profile: 0
    username: !secret gbl_pl960_username
    password: !secret gbl_pl960_password
    port: 2000
    extra_arguments: '-pred 1 -q:v 2'
homeassistant:
  latitude: !secret latitude
  longitude: !secret longitude
  unit_system: metric
  time_zone: !secret TZone
  customize: !include customize.yaml

Traceback/Error logs

Logger: homeassistant.components.onvif.camera
Source: components/onvif/camera.py:145
Integration: onvif (documentation, issues)
First occurred: 5:26:01 PM (1 occurrences)
Last logged: 5:26:01 PM

The date/time on the camera (UTC) is '2020-04-21 17:27:39+00:00', which is different from the system '2020-04-21 14:26:01.612970+00:00', this could lead to authentication issues

Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 27 (4 by maintainers)

Most upvoted comments

I can confirm I have the same error.

I have the same error and have had for quite some time.

I power cycle cameras every 24 hours and it resets the clock settings. The workaround does not help to me.

I think its is HA problem, in time “from the system” its showing UTC-1 time

i am running into the same issue:

2021-06-14 02:04:07 WARNING (MainThread) [homeassistant.components.onvif] The date/time on the device (UTC) is ‘2021-06-14 10:04:06+00:00’, which is different from the system ‘2021-06-14 09:04:04.211277+00:00’, this could lead to authentication issues

can someone please make the necessary fix in onvif lib?