petrleocompel / hikaxpro_hacs

HACS repository of Hikvision Ax Pro integration for home assistant
MIT License
40 stars 4 forks source link

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

Open Nick2691 opened 7 months ago

Nick2691 commented 7 months ago

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

petrleocompel commented 7 months ago

Did you waited "pull interval" before checking?

petrleocompel commented 7 months ago

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?

Nick2691 commented 7 months ago

Did you waited "pull interval" before checking?

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

petrleocompel commented 7 months ago

Did you waited "pull interval" before checking?

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

It is configurable (default 30 seconds)

Nick2691 commented 7 months ago

I switch using this interface 1

petrleocompel commented 7 months ago

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

That is the time required to "update the state"

petrleocompel commented 7 months ago

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

Nick2691 commented 7 months ago

I set pull interval to 5

muratmnf commented 3 months ago

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

petrleocompel commented 3 months ago

@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.

petrleocompel commented 1 week ago

Any update on this ? @muratmnf