reolink_dev icon indicating copy to clipboard operation
reolink_dev copied to clipboard

New official integration in next release?

Open KentuckyMC opened this issue 2 years ago • 38 comments

Hello all,

As I always read the beta release notes, I saw that Reolink gets a official integration with Home Assistant. Maybe good for everyone (as also the maker of this repository) to help the core of Home Assistant and move towards there?

Thanks a lot!

https://rc.home-assistant.io/integrations/reolink

KentuckyMC avatar Dec 29 '22 06:12 KentuckyMC

Hi,

This is very interesting. From the very basic yet page it suggests it won't support AI sensors among other things. Did you try it?

cpainchaud avatar Dec 29 '22 07:12 cpainchaud

Hi, no haven't tried this beta myself yet. But seems promising they include it in the core of HA. Because of the WAF I don't use the Beta releases of HA. I've a Reolink doorbell myself, so will give this one a try once they release it.

KentuckyMC avatar Dec 29 '22 07:12 KentuckyMC

https://github.com/home-assistant/core/pull/84081 gives some more details. It ss also based on https://github.com/fwestenberg/reolink_dev but with limited functions (yet).

swa72 avatar Jan 02 '23 10:01 swa72

No motion sensors as far as I can see

andriej avatar Jan 02 '23 10:01 andriej

I will be honest with you all, while I expect official integration will have less issues with 'event loops' which I cannot reproduce in my env so I cannot fix it, I still think they will be hit hard by all the bugs on various firmware version which have never been fixed. We will see !

cpainchaud avatar Jan 02 '23 10:01 cpainchaud

It's out - has anyone tried if it's safe to update HA and not have this HACS integration broken?

shalak avatar Jan 04 '23 23:01 shalak

I've installed the core update, and my cameras still appear to be working normally using reolink_dev. I even set up one of my cameras (an RLC-520) using the new official integration, and it seems to be working seamlessly using both integrations simultaneously while HA still treats it as a single device, which is neat.

As @andriej pointed out, the official integration doesn't provide any entities for motion, lights, AI, etc; but it does provide a separate entity for each stream (main, sub, and stills). Being able to use different streams in different dashboards could be useful, so I just might use both integrations for a while and see how that goes.

ALEdmonds avatar Jan 05 '23 03:01 ALEdmonds

I'd prefer all three (new official, this established one and https://github.com/JimStar/reolink_cctv#most-important-changesimprovements) would team up to concentrate dev power and create ONE "perfect" ReoLink integration.

bcutter avatar Jan 05 '23 20:01 bcutter

I noticed in the changes for the official integation that both fwestenberg and JimStar were asked if they wanted to be code owners of the official integration so I am sure they'd be open to volunteers. https://github.com/home-assistant/core/pull/84081#issuecomment-1353833376

bcameron21 avatar Jan 06 '23 09:01 bcameron21

Remember that the main issue is API inconsistencies, bugs and non-sense designs made by Reolink. Each integration authors are making design choices based on what makes sense for their own devices specifics. It will be a really hard job to have 1 integration that works for everyone.

cpainchaud avatar Jan 06 '23 10:01 cpainchaud

It will be a really hard job to have 1 integration that works for everyone.

So will it be for every user looking for the integration working for them.

bcutter avatar Jan 06 '23 11:01 bcutter

I have found that this official integration produces fewer errors in the log file but sadly no motion sensors.

DarwinData avatar Jan 09 '23 22:01 DarwinData

Maybe the one because of the other? 😃 Anyway, no motion sensors, no relevance for me.

bcutter avatar Jan 09 '23 23:01 bcutter

It I'll be there in next version, it's because of HA rules on new integrations. I saw the commits, it's definitely coming

cpainchaud avatar Jan 09 '23 23:01 cpainchaud

Awesome news about the motion sensor!

DarwinData avatar Jan 09 '23 23:01 DarwinData

HA rules on new integrations

Interesting. What do they look like? Official integrations are not allowed to have not even closely the same set of features as the custom ones?

Just kidding, that's good news, basically.

bcutter avatar Jan 09 '23 23:01 bcutter

They are allowed only 1 platform per release. This one had 'camera' platform, next one should have boolean states

On Tue, Jan 10, 2023, 00:26 bcutter @.***> wrote:

HA rules on new integrations

Interesting. What do they look like? Official integrations are not allowed to have not even closely the same set of features as the custom ones?

Just kidding, that's good news, basically.

— Reply to this email directly, view it on GitHub https://github.com/fwestenberg/reolink_dev/issues/608#issuecomment-1376485617, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTC5PWYWNGD27CRDXLMAZLWRSNCHANCNFSM6AAAAAATL3BSDU . You are receiving this because you commented.Message ID: @.***>

cpainchaud avatar Jan 09 '23 23:01 cpainchaud

It is not true - it's just easier to maintain and eliminate bugs. Contributors can do more PRs if they are able to, just keep it mind everyone does it in their free time...

andriej avatar Jan 09 '23 23:01 andriej

well I was just quoting its author: image https://github.com/home-assistant/core/issues/85559

cpainchaud avatar Jan 10 '23 00:01 cpainchaud

Strange. FullyKiosk had entities of several domains right from the beginning. Anyway, let's watch development (from the sideline in my case for some time).

bcutter avatar Jan 10 '23 00:01 bcutter

Remember that the main issue is API inconsistencies, bugs and non-sense designs made by Reolink. Each integration authors are making design choices based on what makes sense for their own devices specifics. It will be a really hard job to have 1 integration that works for everyone.

I have an open ticket with Reolink and they want to get into contact with the developers of this integration. They are having difficulty getting a response.

ayourk avatar Jan 10 '23 15:01 ayourk

Maybe @starkillerOG would be interested in this, but AFAIR @fwestenberg already tried to get in touch with reolink and no luck so...

andriej avatar Jan 10 '23 15:01 andriej

Maybe @starkillerOG would be interested in this, but AFAIR @fwestenberg already tried to get in touch with reolink and no luck so...

I'm willing to help facilitate this. An email address(es) of who should be contacted would be nice.

ayourk avatar Jan 10 '23 15:01 ayourk

@andriej thanks for tagging me in this issue.

I am the code-owner of the official HomeAssistant integration and have written the code for it based on the work of this repo (@fwestenberg) and that of @JimStar.

I asked both @fwestenberg and @JimStar to be code-owners of the official HomeAssistant integration and they are refrenced in the acknowledgment of my new upstream library reolink-aio. Unfortunately @fwestenberg and @JimStar did not want to go through the extra work of adhering to all HomeAssistant rules and wanted to go there own way with the custom integration, hopefully they will change there minds once the official integration reaches feature parity to the custom components.

Anyone who wants to help me with the official integration is more than welcome to put in PRs for the upstream lib reolink-aio or the HomeAssistant repo. I will do my best at reviewing incomming Reolink PRs.

Others that do not have the knowledge or time to work on PRs but want to show their appreciation or support can chose to sponsor the upstream library/me.

starkillerOG avatar Jan 10 '23 19:01 starkillerOG

They are allowed only 1 platform per release. This one had 'camera' platform, next one should have boolean states

Almost right, the initial PR to get a new integration into HomeAssistant can only have 1 platform. After that you can add more PRs for more platforms (1 platform per PR). However I run out of time before the beta-cut and did not get to other platforms. (Keep in mind I do this in my free-time without getting paid).

I am already working hard on the binary_sensor platform, my progress is in this branch: https://github.com/starkillerOG/home-assistant/tree/reolink_binary_sensors The basics are done, it just needs some styling, testing and debugging. Hopefully I will have time tonight to finish that and put in the PR.

starkillerOG avatar Jan 10 '23 19:01 starkillerOG

I have an open ticket with Reolink and they want to get into contact with the developers of this integration. They are having difficulty getting a response.

@ayourk I am the developer of the official reolink integration and would be very open to get more contacts with Reolink. They can make a issue in my github library: https://github.com/starkillerOG/reolink_aio/issues Or send me a chat on reddit, my reddit username is StarkillerTR If they contact me, I will send them my private e-mail and phonenumber on which I always respond. You can also post a e-mail adress here, and I can send them a e-mail.

I do have a private-chat with one reolink employee on reddit that is very helpfull, he enroled me in the "super-user" program of Reolink. He is in contact with the dev-team and I have made some requests for new API commands and they did add the GetEvents API command I requested in beta firmware I have, it schould be released in production firmware soon.

starkillerOG avatar Jan 10 '23 19:01 starkillerOG

I might contribute to the official integration @starkillerOG , I have been maintaining this repo for a year+ now and there were are a few issues standing out on Reolink side with tons of bugs and unpractical things. If you have the right contacts then may be there is a hope!

cpainchaud avatar Jan 10 '23 21:01 cpainchaud

@cpainchaud that would be great if you could contribute. I think Reolink is taking me serious at the moment, they have send me a small amount of equipment to test with and seem to be very pleased with having a official integration now.

They even told me they were going to test the official integration themselfs "later". Would be awesom if some inside reolink employees would test with HomeAssistant and experiance themselfs what problems there are in their API.

starkillerOG avatar Jan 10 '23 22:01 starkillerOG

The binary_sensor PR is finished and tested, the PR is here: https://github.com/home-assistant/core/pull/85654 (for people who want to track the progress).

Once that PR is merged and a new HA version is released the binary sensors schould show up for each camera. Probably around febuary 1st.

starkillerOG avatar Jan 10 '23 22:01 starkillerOG

I have an open ticket with Reolink and they want to get into contact with the developers of this integration. They are having difficulty getting a response.

@ayourk did you replay to Reolink to tell them they can contact me? They can also use this e-mail: [email protected], I will keep an eye on that e-mail for the coming week. Note that I normally do not read that e-mail and only forward filtered messages from that e-mail.

starkillerOG avatar Jan 15 '23 20:01 starkillerOG