Closed 6PATyCb closed 1 month ago
Yes, that could be normal, older models don't support all Isapi commands, it doesn't work on my extension either :-(
Doesn't look like a problem with Isapi. Please look at the xml response of my device at log: It contains the necessary meaning for memorization. For some reason xpath is missing this value (dorbell.py):
hm, its indeed strange, the value is there? is if failing on both indoor stations?
the idea is tochange this behaviour anyway , instead of having 2 buttons in the addon , its better to have 1 number entity, so you can make a service to define the volume to a number you choose yourself
hm, its indeed strange, the value is there? is if failing on both indoor stations?
Yes, the behavior is completely the same.
Python is not a language close to me, I already wanted to change the xpath myself, but this is the wrong approach, because it is better for other users to fix this problem. So far I have not managed to figure out how to get to the source inside the docker container to try to fix it at least for myself.
the idea is tochange this behaviour anyway , instead of having 2 buttons in the addon , its better to have 1 number entity, so you can make a service to define the volume to a number you choose yourself
It will look better, but under the hood the logic probably won't change much. You'll still have to read and remember the previous volume state.
no, not need to remember the last setting, i just create one service like number.set "xx"" you deice then if its 0 or 7 or whatever
no, not need to remember the last setting, i just create one service like number.set "xx"" you deice then if its 0 or 7 or whatever
Maybe I didn't explain the original error well. Turning the volume off and on generally works, but the original volume before turning it off is 1, and after turning it back on it becomes 7, and I would like it to be 1 again. I can't figure out how to solve this issue without remembering the original volume level.
I was found how to fix it:
at doorbell.py
need replace 387 row
old text is:
if currentVolume is None or currentVolume.text is None or "0":
new text is:
if currentVolume is None or currentVolume.text is None or currentVolume.text is "0":
no, not need to remember the last setting, i just create one service like number.set "xx"" you deice then if its 0 or 7 or whatever
Oh, I'm very stupid, but now I get your idea. My fix now is not required.
can you try the beta addo version : 69 ? i just pushed it, i changed lien to :
if currentVolume is None or currentVolume.text is None or currentVolume.text == "0":
Checked in beta. Works as it should. It was a tested piece of code. I figured out how to edit the source in docker and checked it.
mute:
unmute:
What happened?
Hi. I am trying to control DS-KH6320-WTDE1doorbell from HA. When I click to "Mute audio output" my volume level cannot be parsed correctly from the response and as a result after unmuting the volume is restored to default. All details in debug log.
Add-on
Hikvision Doorbell
What version of the add-on are you running?
3.0.16
Installation type
Home Assistant add-on
Relevant log output
Relevant configuration
Anything else?
No response