Hello, i’m running HA 0.62.1 on a synology nas using docker and i want to know if it’s possible with this config to read the data from the ‘My Flora’ sensors.
I have attached a bluetooth usb dongle to my nas, i have the bluetooth_tracker in my device_tracker list. Tt discovered my tv, phone and tablet perfectly but not the xiaomi sensors. So i have downloaded ‘BLE Scanner’ on my android phone, it’s an app that’s scan the nearby bluetooth devices so i have founded the mac adress of my sensor:
- platform: miflora
mac: 'C4:7C:8D:66:12:13'
name: Fleur 1
force_update: false
median: 3
monitored_conditions:
- moisture
- light
- temperature
- conductivity
- battery
With the MAC adress i thought it will work but unfortunately it doesn’t. I’m receiving this kind of errors now in the log:
2018-02-05 19:21:52 WARNING (MainThread) [homeassistant.components.sensor] Updating miflora sensor took longer than the scheduled update interval 0:00:30
2018-02-05 19:22:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.fleur_1_moisture is taking over 10 seconds
2018-02-05 19:22:21 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.fleur_1_moisture fails
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity.py", line 201, in async_update_ha_state
yield from self.async_device_update()
File "/usr/src/app/homeassistant/helpers/entity.py", line 308, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 327, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/sensor/miflora.py", line 143, in update
data = self.poller.parameter_value(self.parameter)
File "/usr/local/lib/python3.6/site-packages/miflora/miflora_poller.py", line 128, in parameter_value
self.fill_cache()
File "/usr/local/lib/python3.6/site-packages/miflora/miflora_poller.py", line 60, in fill_cache
firmware_version = self.firmware_version()
File "/usr/local/lib/python3.6/site-packages/miflora/miflora_poller.py", line 102, in firmware_version
_HANDLE_READ_VERSION_BATTERY, self._format_bytes(res))
File "/usr/local/lib/python3.6/site-packages/miflora/miflora_poller.py", line 170, in _format_bytes
return ' '.join([format(c, "02x") for c in raw_data]).upper()
TypeError: 'NoneType' object is not iterable
Any kind of help will be greatly appreciated.
Thanks