2018-06-15 18:29:59 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform emoncms
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/emoncms.py", line 104, in setup_platform
elem))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/emoncms.py", line 137, in __init__
self._state = round(float(elem["value"]), DECIMALS)
TypeError: float() argument must be a string or a number, not 'NoneType'
@reynos I have not touched / updated home assistant / emoncms for over a year so not sure what all has changed it still works fine in my old version. However looking at the error and the current code my guess is one of your feeds in emoncms does not have a value yet.
You could try and see if it works if you specify the feedid’s of the feeds that you want to use and make sure in emoncms the feeds you wanna use contains at least one value
if you want to find out which feed is not having a value you could use http://10.0.26.11/emoncms/feed/list.json?apikey=yourapikeyhere and check the for feeds (id’s) where there is no “value” key pair. It might also be visible in the feed list on emoncms but not sure how it would display