fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

Cant change integration option settings #231

Open AaronPitts opened 3 years ago

AaronPitts commented 3 years ago

Describe the bug: After selecting the camera I wan to change from the integration page. I'm selecting Options which opens the options page for that camera.

When I make any change the change is rejected and I'm presented with test atop the option page that says "User Input malformed". The above is true for all options selected: protocol, stream . motion sensor time out and playback range.

To Reproduce See above

Expected behavior The options to change to the selected value

Screenshots On HA site post Option Page Option Page With Error

Environment: Please provide useful information about your environment, like:

Operating System Home Assistant OS 6.1 Deployment production

Cameras:

Additional context I'm also seeing errors in my log

Traceback (most recent call last): File "/config/custom_components/reolink_dev/init.py", line 123, in update_listener base.motion_off_delay = entry.options[CONF_MOTION_OFF_DELAY] KeyError: 'motion_off_delay' 2021-07-26 14:40:14 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/reolink_dev/init.py", line 124, in update_listener base.playback_months = entry.options[CONF_PLAYBACK_MONTHS] KeyError: 'playback_months' 2021-07-26 14:40:24 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/reolink_dev/init.py", line 123, in update_listener base.motion_off_delay = entry.options[CONF_MOTION_OFF_DELAY] KeyError: 'motion_off_delay' 2021-07-26 14:40:34 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/reolink_dev/init.py", line 123, in update_listener base.motion_off_delay = entry.options[CONF_MOTION_OFF_DELAY] KeyError: 'motion_off_delay'

I should add that the cameras operate as expected in the ReoLink client and that in HA still images for each camera is displayed but they update every ~15sec. But when viewing the entity from the "States Page" and selecting the "Informational Icon" circle with a ! I get a full live streaming view from the camera

apmillen commented 3 years ago

I am also getting the same "User Input malformed" message when trying to change settings.

RobertusIT commented 3 years ago

same here, i didn't understand why

and also, how can i create an automation, to get picture and a video, when there is a motion?

danielscheidler commented 3 years ago

same here.

So main-stream is unusable on HA and I have to use sub-stream if I want to use it without delay of 30seconds. But without this option cam is useless for HA.

Remove the cam, reinstalled HACS and the Integration and finally integrate the cam again. Same Error.

HA: core-2021.8.6 supervisor-2021.09.0

Camera: Reolink RLC-511WA Config Version: v3.0.0.0 Firmware Version: v3.0.0.177_21012109

RobertusIT commented 3 years ago

I migrate with frigate for now. Is very good, anyway this integration was a good option, so please fix it