I have Doods configured but when it’s called by my automation or even when I call it directly from the “developer tools” I get this error in the logs
Logger: homeassistant.helpers.event
Source: helpers/condition.py:232
First occurred: 1:45:00 PM (3 occurrences)
Last logged: 1:46:01 PM
Error while processing state changed for image_processing.doods_camera_solarium
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 257, in _async_state_change_dispatcher
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 433, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/components/homeassistant/triggers/numeric_state.py", line 130, in state_automation_listener
matching = check_numeric_state(entity_id, from_s, to_s)
File "/usr/src/homeassistant/homeassistant/components/homeassistant/triggers/numeric_state.py", line 99, in check_numeric_state
return condition.async_numeric_state(
File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 232, in async_numeric_state
fvalue = float(value)
TypeError: float() argument must be a string or a number, not 'dict'
Here is my configuration
- platform: doods
url: "http://192.168.XX.XX:8080"
detector: default
scan_interval: 10000
source:
- entity_id: camera.camera_solarium
file_out:
- "/config/www/cameras/{{ camera_entity.split('.')[1] }}_latest.jpg"
- "/config/www/cameras/{{ camera_entity.split('.')[1] }}_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg"
labels:
- name: dog
confidence: 50
area:
top: 0.2
right: 0.2
left: 0.2
bottom: 0.2
covers: true
And here is my automation analyzing the results of the image processing and sending me a notification if something matches
alias: Send Notification when motion is detected
description: ''
trigger:
- platform: numeric_state
entity_id: image_processing.doods_camera_solarium
above: '0'
attribute: matches
condition: []
action:
- service: notify.mobile_app_iphone
data:
message: Motion detected at the back yard
title: Solarium Motion
data:
photo:
- file: /config/www/cameras/camera_solarium_latest.jpg
caption: Camera Solarium
mode: single
What am I doing wrong?