jeremywillans / ha-rest980-roomba

HA iRobot Roomba Configuration using rest980
MIT License
211 stars 42 forks source link

Template variable warning: #31

Closed mattbruman closed 3 years ago

mattbruman commented 3 years ago

Having this error repeating over and over in my logs

2021-08-30 10:34:56 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: list object has no element 1 when rendering '{% if state_attr('sensor.rest980', 'softwareVer') is defined %} {% set version = state_attr('sensor.rest980', 'softwareVer') %} {{ version.split('+')[1] }} {% else %} n-a {% endif %}'

mattbruman commented 3 years ago

For now I have commented out the softwareVer code and it has stopped the error

jeremywillans commented 3 years ago

Can you please share the output from sensor.rest980? specifically the softwareVer line.

jeremywillans commented 3 years ago

bump

mattbruman commented 3 years ago

Sorry had some issues with my Roomba and had to factory reset. I think I'm gonna just redo this whole component from scratch. I have a feeling my issue is because I disabled the features my 980 doesn't have like specific room cleaning and bin emptying.

blakdog1978 commented 3 years ago

Good morning, sorry my english but i get help from google ... given the impossibility of robots to work in the dark I would like to be able to create an automation with lights, let me explain since on the phone app it is displayed in which room the robot is cleaning, I would like to be able to turn on the light automatically when the robot is in the room and consequently turn it off when he leaves it, do you think this is possible? Thanks...

jeremywillans commented 3 years ago

This component relies on the data from rest980/dorita980 which does not seem to provide the current vacuumed/heading to the room like the app does. 😞 the closest you could get in the automation is to add a step to turn on all the light at the beginning and off again at the end, may not the best outcome however.

edit - closing this as off topic, please create a seperate issue if needed