LaMetric error

Did anyone else come across this error, or have an idea what is wrong?

Error executing service <ServiceCall notify.lametric1: message=<homeassistant.helpers.template.Template object at 0x723f0250>, data=icon=i6219, sound=dog2>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/notify/__init__.py", line 137, in async_notify_message
    yield from notify_service.async_send_message(**kwargs)
  File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/notify/lametric.py", line 96, in send_message
    lmn.set_device(dev)
  File "/usr/lib/python3.6/site-packages/lmnotify/lmnotify.py", line 139, in set_device
    self.set_apps_list()
  File "/usr/lib/python3.6/site-packages/lmnotify/lmnotify.py", line 324, in set_apps_list
    result = self._exec(cmd, url)
  File "/usr/lib/python3.6/site-packages/lmnotify/lmnotify.py", line 80, in _exec
    url = url % self.dev["ipv4_internal"]
TypeError: string indices must be integers

At a rough guess, there’s something wrong with the lametric config. Can you share it please.

Thanks for the suggestion, but I doubt it since its been working for a long time with no problems. A restart fixed it for now, I’ll wait and see if it happens again :slight_smile: