Miio nightmare... again

Hi, I’m a newcomer I hope not for long.
I’m fighting with my Xiaomi eyecare lamps. I can’t configure it, no way seems like a solution. Any help is welcome.

Definition:
light:

  • platform: xiaomi_miio
    name: XaviLamp
    host: 192.168.1.17
    token: 1592146af9007dd6878cb5e12410672b
    model: philips.light.bulb

Ussing Hassbian in a rasberry 3, Homeassistant versión 0.81.2
under pi user

$ uname -a
Linux hassbian 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux
$python --version
Python 2.7.13
$ python3 --version
Python 3.5.3
$pip3 show construct
Name: construct
Version: 2.9.45

Error:

ERROR (MainThread) [homeassistant.components.light] xiaomi_miio: Error on device update!
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 251, in _async_add_entity
await entity.async_device_update(warning=False)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 347, in async_device_update
await self.async_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/xiaomi_miio.py”, line 493, in async_update
self.max_mireds, self.min_mireds)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/xiaomi_miio.py”, line 514, in translate
value_scaled = float(value - left_min) / float(left_span)
TypeError: unsupported operand type(s) for -: ‘NoneType’ and ‘int’

Thank you in advance

What version of home assistant?

0.81.2
lastest
Thank you

0.81.6 is the latest. Suggest you update then report back.

Done, updated to 0.81.6
pip3 show construct
Name: construct
Version: 2.9.45
Same error

ERROR (MainThread) [homeassistant.components.light] xiaomi_miio: Error on device update!
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 251, in _async_add_entity
await entity.async_device_update(warning=False)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 347, in async_device_update
await self.async_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/xiaomi_miio.py”, line 493, in async_update
self.max_mireds, self.min_mireds)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/xiaomi_miio.py”, line 514, in translate
value_scaled = float(value - left_min) / float(left_span)
TypeError: unsupported operand type(s) for -: ‘NoneType’ and ‘int’

Are there any idea?
At the end, python-miio runs well in th eraspberry

mieye --ip 192.168.1.17 --token 1592146af9007dd6878cb5e12410672b on
Power on: [‘ok’]

Do you recommend me to run a custom script calling mieye?

SOLVED
delete this line

model: philips.light.bulb