roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Payload & value errors in logs during HA startup

auanasgheps opened this issue · comments

Hi, when I start HA i get these two errors related to YiHack.
What should I do to avoid them?
Thanks

Logger: homeassistant.components.mqtt.number
Source: components/mqtt/number.py:206
Integration: MQTT (documentation, issues)
First occurred: 15:39:04 (6 occurrences)
Last logged: 15:39:05

Payload '
 { "SWITCH_ON":"yes", "SAVE_VIDEO_ON_MOTION":"yes", "SENSITIVITY":"low", "AI_HUMAN_DETECTION":"no", "FACE_DETECTION":"no", "MOTION_TRACKING":"no", "SOUND_DETECTION":"yes", "SOUND_SENSITIVITY":"50", "LED":"yes", "ROTATE":"no", "IR":"yes", "CRUISE":"off", "NULL":"NULL" }' is not a Number

and

Logger: homeassistant.helpers.template
Source: helpers/template.py:627
First occurred: 15:39:04 (6 occurrences)
Last logged: 15:39:05

Error parsing value: 'dict object' has no attribute 'PTZ_PRESET' (value: 
 { "SWITCH_ON":"yes", "SAVE_VIDEO_ON_MOTION":"yes", "SENSITIVITY":"low", "AI_HUMAN_DETECTION":"no", "FACE_DETECTION":"no", "MOTION_TRACKING":"no", "SOUND_DETECTION":"yes", "SOUND_SENSITIVITY":"50", "LED":"yes", "ROTATE":"no", "IR":"yes", "CRUISE":"off", "NULL":"NULL" }, template: {{ value_json.PTZ_PRESET | int }})