petrleocompel / hikaxpro_hacs

HACS repository of Hikvision Ax Pro integration for home assistant
MIT License
46 stars 5 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 9 months ago

Nick2691 commented 9 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 9 months ago

Did you waited "pull interval" before checking?

petrleocompel commented 9 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 9 months ago

Did you waited "pull interval" before checking?

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

petrleocompel commented 9 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 9 months ago

I switch using this interface 1

petrleocompel commented 9 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 9 months ago

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

Nick2691 commented 9 months ago

I set pull interval to 5

muratmnf commented 6 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 6 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 2 months ago

Any update on this ? @muratmnf

petrleocompel commented 1 month ago

In case of no activity - i will close the issue on end of the week. @Nick2691 @muratmnf

Nick2691 commented 1 month ago

I still have this problem

petrleocompel commented 1 month ago

Last message from you is that you set the pull interval to 5 seconds.

Nick2691 commented 1 month ago

Last message from you is that you set the pull interval to 5 seconds.

And the problem is still the same (

petrleocompel commented 1 month ago

I am trying to search deeper into this but currently in the "log" you sent I am unsure what "relay" (by name or id) should I look for.

I am using "relay" every day via HA. But not "external" but internal on board. But the API for controlling external and internal is the same.

So to see more I need to know "name" of the relay what to look for. I will try to replay from the logs state of your system. Is it Реле насос вода ?

Also the logs are cut. Does not contain initialization of the integration. To fully replay / simulate the issue I really need that.

Nick2691 commented 1 month ago

The name of the relay is Реле насос вода. I can make new logs in 5-7 days.

Nick2691 commented 1 month ago

home-assistant.log This is the log

petrleocompel commented 1 month ago

Thanks I will take a look.