This is a simple integration for getting motion sensors from Herospeed XVR cameras to show up in Home Assistant. In order to make this integration work you have to set up an e-mail serwer on your Herospeed XVR and set the SMTP server to custom and add the ip adress of your Home Assistant instance. Then choose a port and for encryption use NONE set a user name and password.
In Home Assistant you have to provide the ip adress of your XVR, SMTP port, number of Camera Channels (important, this integration reades e-mail headers sent, so if motion is detected on channel 4 you have to set up 4 cameras, if you have 16 cameras but motion only on 1, 5 and 16 you have to add 16 cameras and then find the motion sensors you want), Motion Reset Delay, SMTP user name and password.
Now you will have motion sensors set up for your cameras and when the XVR finds motion it will send an e-mail which will be read by this integration and shown as motion in Home Assistant, make sure you set up motion sensors for your cammeras in the XVR first.
I do not plan to add any other sensors to this integration, if you want live stream from the camera use rstp adresses.
It is possible to add it as a custom repository.
If you are using HACS, go to HACS -> Integrations and click on the 3 dots (top righ corner). Then choose custom repositories, and add this repository url (https://github.com/DominikWrobel/herospeed_xvr), choosing the Integration category.
That's it, and you will be notified by HACS on every release. Just click on upgrade.
If you like my work you can support me via: