I am seeing the same thing with my setup as well. I am getting the Blink team e-mail even without a reboot.
RE: the repeated Blink emails. It’s a known issue - see the post above (#95: Blink Integration stopped working and can't login). I am seeing the same behavior, but I have not had to enter in the pin again after the initial time. I have received this email about 50 times now upon HA restart and my Blink integration is still working fine
I am quite stuck here: after enabling the Blink integration in the Configuration UI, signing in, and entering my 2FA pin I received by email, I get a “success” confirmation, but none of the Blink devices/entities are ever found. I couldn’t find anything useful in the logs. I tried deleting and reconfiguring the integration and power cycling the Blink sync module, to no avail. I also tried setting the pin via blink.send_pin
. I can see Blink on my Integrations page - it just doesn’t have any devices shown.
Edit: I should add that it was working for me yesterday, but then all Blink devices went unavailable, so I deleted and reenabled the integration, and now all devices are missing. I’ve been getting tons of emails with different UFA pins.
HassOS
HA Version: 0.114.4
I have a number of cameras, but think that I can only enable/disable one at a time? The sync module can only work with one camera at a time? If this is the case, is there a trigger I can use to confirm the update is physically completed and the next camera can be updated?
I’ve put in a 5 second delay, currently and cannot see any response from the node. (This is happening in Node-Red).
Thanks
I have two Blink XT2 cameras connected to a single sync module and to Home Assistant. One account, one configuration/entry in Home Assistant, and one Blink Sync Module to rule them all.
I’m just getting into automation and am trying to create one to switch my cameras on or off … whatever I do, it just doesn’t seem to trigger.
I seem to be getting this error in the log …
2020-10-13 13:20:31 ERROR (MainThread) [homeassistant.components.automation.cameras_on_duplicate] Cameras On Test: Error executing script. Unexpected error for call_service at pos 1: unhashable type: ‘list’
Here’s an example which I am testing …
- id: ‘1602577516768’
alias: Cameras On Test
description: ‘’
trigger:
condition:
action:
- service: camera.enable_motion_detection
data: {}
entity_id: camera.blink_rear
mode: single
I have also tried with entity_id: camera.blink_rear placed in the data, but again … it doesn’t seem to work. I can enable disable using Developer Tools > Services … this is normally triggered within 20 seconds …
Any ideas appreciated … thanks …
Try this:
- id: ‘1602577516768’
alias: Cameras On Test
description: ‘’
mode: single
trigger: []
condition: []
action:
- service: camera.enable_motion_detection
entity_id: camera.blink_rear
You might want to put some kind of trigger in there. This will trigger the automation every 5 minutes:
trigger:
platform: time_pattern
minutes: "/5"
Unfortunately not, still getting the same error.
Am running on Home Assistant Core HA v. 0.116.2
I do it like this:
Automation:
- id: "100"
alias: Activate Blink Evening
trigger:
- platform: time
at:
- "21:00:00"
- "02:30:00"
condition:
- condition: state
entity_id:
- input_boolean.guest_mode
state: "off"
action:
- service: script.turn_on
entity_id: script.activate_cameras
script:
activate_cameras:
sequence:
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.blink_varaderocam
- delay: "00:01:00"
- service: script.turn_on
entity_id: script.update_blink
- service: notify.pushover
data:
message: "Die Kameras wurden aktiviert"
title: "Script activate"
update blink just refreshes the picture what I do once an hour
I have separated it because I expose the script to alexa.
Did you paste my example and overwrite what you had before, or did you just try and make yours look like mine? Somehow your example above has some weird characters where it should just have a simple dash ("-"
). Sometimes these errors occur when there’s some little nagging thing like something invisible at the end of a line, etc.
I’m still running 0.115.6, so I’ll be upgrading to 0.116.2 after a snapshot completes. So, I can’t tell yet if the update broke anything.
I copied and pasted … I put it in block quote, not preformatted in the editor here … oops …
it’s still doing the same thing …
- id: '1602577516768'
alias: Cameras On Test
description: ''
mode: single
trigger:
platform: time_pattern
minutes: "/5"
condition: []
action:
- service: camera.enable_motion_detection
entity_id: camera.blink_rear
Oh, try indenting the service call, i.e.
action:
- service: camera.enable_motion_detection
entity_id: camera.blink_rear
I had tried that, but it makes no difference, it would also put it out of step to how the GUI builds actions …
Hmm, very strange. It’s a very simple automation and it looks correct. So, did you originally create this in the automation builder? If so, where does it reside now? You are reloading automations after every edit, correct?
Yes, I’m confused too, I created in builder and am now editing in both there and file. Making sure I reload automation. I have also removed all other automations at one point, to concentrate on this one … no luck
This is the full error.
2020-10-13 16:01:58 ERROR (MainThread) [homeassistant.components.automation.cameras_on_duplicate] While executing automation automation.cameras_on_duplicate
Traceback (most recent call last):
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/components/automation/__init__.py", line 426, in async_trigger
await self.action_script.async_run(
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/script.py", line 985, in async_run
await asyncio.shield(run.async_run())
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/script.py", line 239, in async_run
await self._async_step(log_exceptions=False)
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/script.py", line 247, in _async_step
await getattr(
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/script.py", line 454, in _async_call_service_step
await service_task
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/core.py", line 1335, in async_call
task.result()
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/core.py", line 1374, in _execute_service
await self._hass.async_add_executor_job(handler.func, service_call)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/homeassistant/custom_components/reolink_dev/camera.py", line 149, in handler_enable_motion_detection
entity = component.get_entity(call.data.get(ATTR_ENTITY_ID))
File "/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_component.py", line 99, in get_entity
entity_obj = platform.entities.get(entity_id)
TypeError: unhashable type: 'list'
I’m trying to do something similar with my internal Blink Mini cameras.
Two issues - the reference to BlinkCamera.arm and the throttling?
Has anyone experienced this before? Logs attached
2020-10-16 09:25:18 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=script, service=turn_on, service_data=entity_id=script.disarm_study_camera>
2020-10-16 09:25:18 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event script_started[L]: name=Disarm Study Camera, entity_id=script.disarm_study_camera>
2020-10-16 09:25:18 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=script.disarm_study_camera, old_state=<state script.disarm_study_camera=off; last_triggered=2020-10-16T01:02:30.403859+01:00, mode=single, current=0, friendly_name=Disarm Study Camera @ 2020-10-16T01:02:37.389688+01:00>, new_state=<state script.disarm_study_camera=on; last_triggered=2020-10-16T09:25:18.897106+01:00, mode=single, current=1, friendly_name=Disarm Study Camera @ 2020-10-16T09:25:18.897166+01:00>>
2020-10-16 09:25:18 INFO (MainThread) [homeassistant.components.script.disarm_study_camera] Disarm Study Camera: Running script sequence
2020-10-16 09:25:18 INFO (MainThread) [homeassistant.components.script.disarm_study_camera] Disarm Study Camera: Executing step call service
2020-10-16 09:25:18 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=camera, service=disable_motion_detection, service_data=entity_id=camera.blink_study>
2020-10-16 09:25:18 WARNING (SyncWorker_34) [blinkpy.camera] Method is deprecated as of v0.16.0 and will be removed in a future version. Please use the BlinkCamera.arm property instead.
2020-10-16 09:25:18 ERROR (SyncWorker_34) [blinkpy.auth] Connection error. Endpoint https://rest-e001.immedia-semi.com/network/112113/camera/18299/disable possibly down or throttled.
2020-10-16 09:25:18 INFO (MainThread) [homeassistant.components.script.disarm_study_camera] Disarm Study Camera: Executing step delay 0:00:05
2020-10-16 09:25:18 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=script.disarm_study_camera, old_state=<state script.disarm_study_camera=on; last_triggered=2020-10-16T09:25:18.897106+01:00, mode=single, current=1, friendly_name=Disarm Study Camera @ 2020-10-16T09:25:18.897166+01:00>, new_state=<state script.disarm_study_camera=on; last_triggered=2020-10-16T09:25:18.897106+01:00, mode=single, current=1, last_action=delay 0:00:05, friendly_name=Disarm Study Camera @ 2020-10-16T09:25:18.897166+01:00>>
2020-10-16 09:25:23 INFO (MainThread) [homeassistant.components.script.disarm_study_camera] Disarm Study Camera: Executing step call service
2020-10-16 09:25:23 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=blink, service=blink_update, service_data=>
2020-10-16 09:25:26 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=script.disarm_study_camera, old_state=<state script.disarm_study_camera=on; last_triggered=2020-10-16T09:25:18.897106+01:00, mode=single, current=1, last_action=delay 0:00:05, friendly_name=Disarm Study Camera @ 2020-10-16T09:25:18.897166+01:00>, new_state=<state script.disarm_study_camera=off; last_triggered=2020-10-16T09:25:18.897106+01:00, mode=single, current=0, friendly_name=Disarm Study Camera @ 2020-10-16T09:25:26.059373+01:00>>
Aha, I discovered my issue. The custom component to view my reolink camera was interfering.
File “/home/homeassistant/homeassistant/custom_components/reolink_dev/camera.py”, line 149, in handler_enable_motion_detection
entity = component.get_entity(call.data.get(ATTR_ENTITY_ID))
I’ve uninstalled that, and it works great. Not sure how they could be getting mixed up with each other.
Having delved deeper, I see we are unable to disable Motion Detection on Blink Minis? Pity as they are the ones most likely to need to disable as they are indoors. Is there a plan to support or is it a Blink Mini limitation?
Also there seems to be lots more functionality in @fronzbot 's Blinkpy than I’m able to call in HA? Maybe I’m just doing it wrong!
Anything you can do from the app you should be able to do with a rest api endpoint, it’s just a matter of finding the right url to hit (which I haven’t been able to find yet). Also, there’s more endpoints in the library, but not everything is super handy in the HA component. If you see something that would be useful, feel free to point it out and I’ll take a look
Interested if it is an Amazon limitation that you can’t disable Motion detection on Blink Mini cameras? It is stated on the docs here: https://www.home-assistant.io/integrations/blink/
I’d like to disable motion detection at certain times on just my two minis.