Ok, yes, I was pulling info from the log. Sorry about that. Now I’m pulling from the console. (I’ve been running it as a service.)
Step 1:
INFO:homeassistant.loader:Loaded light.flux_led from custom_components.light.flux_led
INFO:homeassistant.util.package:Attempting install of https://github.com/Danielhiversen/flux_led/archive/master.zip#flux_led==0.2
INFO:pyvera.subscribe:Poll returned
INFO:pyvera.subscribe:Poll returned
b'192.168.0.106,ACCF239FDC4E,HF-LPB100-ZJ200' b'HF-A11ASSISTHREAD'
["b'192.168.0.106", 'ACCF239FDC4E', "HF-LPB100-ZJ200'"]
('192.168.0.106', 48899)
b'192.168.0.109,ACCF239FCF22,HF-LPB100-ZJ200' b'HF-A11ASSISTHREAD'
["b'192.168.0.109", 'ACCF239FCF22', "HF-LPB100-ZJ200'"]
('192.168.0.109', 48899)
b'192.168.0.128,ACCF23A10D14,HF-LPB100-ZJ200' b'HF-A11ASSISTHREAD'
["b'192.168.0.128", 'ACCF23A10D14', "HF-LPB100-ZJ200'"]
('192.168.0.128', 48899)
INFO:pyvera.subscribe:Poll returned
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.4/logging/__init__.py", line 978, in emit
msg = self.format(record)
File "/usr/lib/python3.4/logging/__init__.py", line 828, in format
return fmt.format(record)
File "/usr/lib/python3.4/logging/__init__.py", line 565, in format
record.message = record.getMessage()
File "/usr/lib/python3.4/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/usr/local/bin/hass", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 386, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 293, in setup_and_run_hass
log_rotate_days=args.log_rotate_days)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 292, in from_config_file
skip_pip=skip_pip)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 264, in from_config_dict
_setup_component(hass, domain, config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 150, in _setup_component
if not component.setup(hass, config):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/vera.py", line 97, in setup
discovery.load_platform(hass, component, DOMAIN, {}, base_config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/discovery.py", line 76, in load_platform
bootstrap.setup_component(hass, component, hass_config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 50, in setup_component
if not _setup_component(hass, component, config):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 150, in _setup_component
if not component.setup(hass, config):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/__init__.py", line 161, in setup
component.setup(config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 53, in setup
self._setup_platform(p_type, p_config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
discovery_info)
File "/home/pi/.homeassistant/custom_components/light/flux_led.py", line 46, in setup_platform
_LOGGER.info("flux_led: \n\n", scanner.getBulbInfo() )
Message: 'flux_led: \n\n'
Arguments: ([{'ipaddr': "b'192.168.0.106", 'model': "HF-LPB100-ZJ200'", 'id': 'ACCF239FDC4E'}, {'ipaddr': "b'192.168.0.109", 'model': "HF-LPB100-ZJ200'", 'id': 'ACCF239FCF22'}, {'ipaddr': "b'192.168.0.128", 'model': "HF-LPB100-ZJ200'", 'id': 'ACCF23A10D14'}],)
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.4/logging/__init__.py", line 978, in emit
msg = self.format(record)
File "/usr/lib/python3.4/logging/__init__.py", line 828, in format
return fmt.format(record)
File "/usr/lib/python3.4/logging/__init__.py", line 565, in format
record.message = record.getMessage()
File "/usr/lib/python3.4/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/usr/local/bin/hass", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 386, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 293, in setup_and_run_hass
log_rotate_days=args.log_rotate_days)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 292, in from_config_file
skip_pip=skip_pip)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 264, in from_config_dict
_setup_component(hass, domain, config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 150, in _setup_component
if not component.setup(hass, config):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/vera.py", line 97, in setup
discovery.load_platform(hass, component, DOMAIN, {}, base_config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/discovery.py", line 76, in load_platform
bootstrap.setup_component(hass, component, hass_config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 50, in setup_component
if not _setup_component(hass, component, config):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 150, in _setup_component
if not component.setup(hass, config):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/__init__.py", line 161, in setup
component.setup(config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 53, in setup
self._setup_platform(p_type, p_config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
discovery_info)
File "/home/pi/.homeassistant/custom_components/light/flux_led.py", line 46, in setup_platform
_LOGGER.info("flux_led: \n\n", scanner.getBulbInfo() )
Message: 'flux_led: \n\n'
Arguments: ([{'ipaddr': "b'192.168.0.106", 'model': "HF-LPB100-ZJ200'", 'id': 'ACCF239FDC4E'}, {'ipaddr': "b'192.168.0.109", 'model': "HF-LPB100-ZJ200'", 'id': 'ACCF239FCF22'}, {'ipaddr': "b'192.168.0.128", 'model': "HF-LPB100-ZJ200'", 'id': 'ACCF23A10D14'}],)
INFO:custom_components.light.flux_led:b'192.168.0.106
ERROR:homeassistant.components.light:Error while setting up platform flux_led
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
discovery_info)
File "/home/pi/.homeassistant/custom_components/light/flux_led.py", line 49, in setup_platform
light = FluxLight(device)
File "/home/pi/.homeassistant/custom_components/light/flux_led.py", line 70, in __init__
self._bulb = flux_led.WifiLedBulb(ipaddr)
File "/home/pi/.homeassistant/deps/flux_led/__init__.py", line 452, in __init__
self.socket.connect((self.ipaddr, self.port))
socket.gaierror: [Errno -2] Name or service not known
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=light, service=turn_on>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=light, service=turn_off>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=light, service=toggle>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=light>
Step 2:
INFO:homeassistant.loader:Loaded light.flux_led from custom_components.light.flux_led
INFO:homeassistant.util.package:Attempting install of https://github.com/Danielhiversen/flux_led/archive/master.zip#flux_led==0.2
INFO:custom_components.light.flux_led:192.168.0.106
INFO:custom_components.light.flux_led:192.168.0.106
ERROR:homeassistant.components.light:Error while setting up platform flux_led
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
discovery_info)
File "/home/pi/.homeassistant/custom_components/light/flux_led.py", line 38, in setup_platform
add_devices_callback(lights)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 155, in add_entities
if self.component.add_entity(entity, self):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 125, in add_entity
entity.update_ha_state()
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 165, in update_ha_state
state = STATE_UNKNOWN if self.state is None else str(self.state)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 237, in state
return STATE_ON if self.is_on else STATE_OFF
File "/home/pi/.homeassistant/custom_components/light/flux_led.py", line 82, in is_on
self.update_lights()
AttributeError: 'FluxLight' object has no attribute 'update_lights'
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_on, domain=light>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_off, domain=light>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=toggle, domain=light>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=light>
BTW - These lights are down at ~$28 today on Amazon: https://smile.amazon.com/gp/product/B00SIDVZSW
They do claim to work in US and Europe, fitting both sizes E26 and E27 standards and covering the range of voltage from 85v to 220v.