-
Notifications
You must be signed in to change notification settings - Fork 101
Integrations | Options | Channel resets to zero after HASS restart #94
Comments
I have the same issue with any of the settings persisting after a reboot when configured through the integration flow. |
I somehow need to store the settings from the options menu. When I have some time, I'll figure this out. If you can find it in some other integration, please let me know. |
I made a fix for NVR related issues. If you download this branch as zip and overwrite all files in your custom_components/reolink_dev you can test it. Also the settings are fixed here, and I add the timeout setting. This one is not working yet, a fix in the python library is needed first. Please let me know the results. I know some small bugs are there:
|
Please update to v0.9! |
This is working good, many thanks When I add let's say Camera 7 Also the no number in the name is nice, would it be possible (optionally) for the entities not to have the number either, since they are picking the camera name? (Not a biggy, I can go edit each entity to remove the numbers) |
hi @fwestenberg Any ideas? |
The integration tries to keep the session alive, which is needed for the subscription. Usually it takes 15 minutes to expire, so before it expires we ask the camera to renew. If the renew fails, it resubscribes. For some reason, both calls fail in your case. Too many sessions with the camera open? Timeout? You can check the active sessions in the camera API, or increase the timeout in the options of the integration... |
Thank you, Probably something in HASS changed and broke some aspects of the integration. Also am not sure which api would show me active sessions, I don't see anything in dev tools regarding [active, session, or connection] |
Version 0.8
Weird issue
I set the Integrations | Options | Channel to 5 (I have NVR, but the value doesn't matter, set it to anything other than 0)
The value is accepted
Until I reboot, and the value resets to 0
And it's not a display only issue of the value either as the camera is displaying camera 0 image.
The weird thing is if I set it back to 5, it gets reset to zero immediately and it's not applied,
The only way I get around this is by changing to some other value (example 1)
And that is applied, now I can go back and change it to 5 and it is accepted.
Steps to reproduce.
1- Install the integration
2- Change the channel to 1 (it can be any value other than 0)
3- Restart HASS
4- Check the channel (it is back to 0)
5- Change it to 1 (the same value as in step 2), Submit
6- Check the value, (it should be 0 instead of 1)
7- Change the channel to something other than 1
8- Check the value, and it should read what you set in step 7
9- Now change the value back to 1
10- Check and it is correctly applied, until next HASS restart.
The text was updated successfully, but these errors were encountered: