Hi @AndrewFG , updated new jar but no new channel added for snapshot.
Ok. I am very busy for a couple of days, but after that I will add some extra logging so we can find out what is going wrong..
Ok no worries. Thanks for the help!
@tizen I was thinking about why my code may not be working and I believe I figured out the reason. So I will make a new jar. But only in a day or two..
EDIT: the revised jar is here..
@tizen I think the latest jar will now show the new snapshot channel. And also if an item is linked to that channel, the binding should do a POST /resource request to fetch the snapshot. I would like to see the log result for that transaction particularly if it fails.
Hi @AndrewFG , I m able to see the new snapshot channel and after adding the image item, I m able to see the snapshot from the camera. Thank you!
I think there is some default refresh for the image as I can see it gets updated after some time.
Is there a way I can get latest snapshot. I tried to refresh the page but image remained same.
Thanks again and let me know if you need logs etc to validate anything.
Mega! I wonder if you could send me the log with the PUT /resource lines and the matching HTTP 200 OK lines? Just so I can confirm that nothing is amiss?
I sent you log in PM. Please check. I was not able to see PUT but POST request in the logs on the refresh of the image.
Hope you need that log.
Yeah I meant POST .. many thanks.
PS apropos the snapshot refresh – there are two things that cause it:
- According to the standard polling cycle. This is 60 seconds by default.
- When OH Core sends a RefreshType.REFRESH command to the binding. I include a small delay of 3 seconds to prevent overloading the device if RefreshType.REFRESH is sent too often.
So if it is not actually refreshing after 3 seconds maybe there is a bottle neck in OH core not sending the refresh request to the binding? => What User Interface are you using?
I added image to WebUI for testing. I m having OH on raspberry pi4.
Edit
One more thing I was wondering, the doorbell and camera I have has person detection too. And I believe that is exposed to HomeKit (I may be incorrect as I dont have any Apple device to check).
So is any capability exposed for person detection which can be added as channel. Having motion detection for any alerting raise too many false positives.
Thanks for all the help!
From the JSON that you already sent me, I am pretty sure that your Thing does already have a motion sensor channel.
motion detection channel is there. I was asking for person detection. There is a option in the camera setting in manufactures app for local AI person detection. I can subscribe for push notification in app only for person detection instead of motion. So was checking is that also exposed to homekit. It will be useful to have for automation etc.
I dont see anything specific for person vs motion detection. But maybe the subscription changes the behavior of the motion channel? Also there are quite a few custom characteristics that might be what you want. But since they are custom, they are not documented, so probably I cant do much with them.
EDIT: your Thing probably has TWO channels – 1) motion sensor and occupancy detected so I suggest to look at them both..
EDIT 2: apropos refresh => https://copilot.microsoft.com/shares/ZVvHaX1SXvVdhJyhLdxdJ
Hi @AndrewFG , This is what i can see in channels.
Are you referring to Active Starus?
Let me check the link for refresh behavior.
Thanks
@tizen I think some time ago you provided some json logs for a door camera. Was that json for the same thing as shown in your screenshot? (It helps to confirm we are talking about the same animal). If not, can you please disable the thing, turn on log trace, and re-enable the thing, and send me the part after GET /accessories and showing the description of things being created.
Yes all logs i shared are of doorbell camera. It has mmwave sensor. And screenshot is of same. I can send you logs again after some time.
HI @AndrewFG I sent you log in PM. This is log after reenabling the thing for the Doorbell.
I think the only way to refresh the image is to have a dummy Item that triggers a rule that sends a REFRESH command to the Image Item. See the read me..
Hi, One can add same bhaviour on the image card too. I did it but behaviour was not consistent. I will do some more testing before I can conclude if it is working or not. I will add a rule to see if the behaviour is same.
Hi @AndrewFG , I updated the jar and I had to repair doorbell. Previous thing didn’t work. It was showing not paired.
After pairing, the behavior is I m seeing in INBOX doorbell as a normal assessory and also as bridge accessory. Child devices are also visible and I was able to add them as things.
I can have it paired as bridged or non bridged accessory but not both.
Hope this is the behavior you have implemented.
Edit:
Image channel is not working too. It remains null. Enabled /disabled thing few times
I did restart of doorbell now thing is not coming online.
I will keep the new jar for now to share any logs for your investigation.
Edit 2:
Other assessories also are not connecting after OH restart. I have two aqara fp2 sensors connected using homekit binding. This broke all automations..
Edit 3
Somehow aqara fp2 are back online but doorbell now shows not paired error.
This happened after another OH restart
