Hi all.
I’m having an issue with my emonCMS integration with HA that I’ve been using for some time.
I’ve been updating various parts of my installation, so this may have triggered the problem, but I can’t work out how to diagnose it.
Basically, all of my emonCMS feeds into HA have stopped updating. If I restart HA all of the feeds in HA will update with a fresh value taken from emonCMS but will update no more. This is repeatable by restarting HA.
In the logs, I have the following appearing which I assume is related to the problem, but I don’t know what to do about it. Any thoughts?
Logger: homeassistant.components.sensor
Source: components/emoncms/sensor.py:224
Integration: Sensor (documentation, issues)
First occurred: 09:34:41 (2 occurrences)
Last logged: 09:34:41
Error adding entities for domain sensor with platform emoncms
Error while setting up emoncms platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 442, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 717, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 814, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 566, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 610, in _async_write_ha_state
attr.update(self.extra_state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/emoncms/sensor.py", line 224, in extra_state_attributes
ATTR_LASTUPDATETIMESTR: template.timestamp_local(float(self._elem["time"])),
TypeError: float() argument must be a string or a real number, not 'NoneType'