petrleocompel/hikaxpro_hacs

Wall Switch (relay) DS-PM1-O1H-WE: Can not switch it off and status is not read correctly

Nick2691 opened this issue · 19 comments

Hello,
I have Wall Switch (relay) DS-PM1-O1H-WE.
and it does not work properly (always OFF).
home-assistant_hikvision_axpro_2024-02-06T10-10-58.800Z.log

Did you waited "pull interval" before checking?

I will go through logs but question is did you "flipped the stage" and got logs after (it will contain both states, on and off) and how is your switch called in your settings?

Did you waited "pull interval" before checking?

Pull interval is 5 (seconds?). Yes, I did

Did you waited "pull interval" before checking?

Pull interval is 5 (seconds?). Yes, I did

It is configurable (default 30 seconds)

I switch using this interface
1

In configuration of the integration is configurable pull interval (in seconds)
image

That is the time required to "update the state"

I will check the logs and I will see if it is an error or just "it takes time"

I set pull interval to 5

I'm having the same problem. After you turn the switch, it turns off within 30 seconds, but it is actually still on.

@muratmnf Are you sure you have the same problem or the switch turns to desired state in HA after like 30 seconds ?

The "state" for external change is based on pull interval from configuration. If you trigger switch in mobile app it will take time from last pull interval + pull interval time (so max pull interval time = default is 30 sec) to update the state in HA.