eschava / broadlink-mqtt

MQTT client to control BroadLink devices
MIT License
224 stars 61 forks source link

Issue running two instances of mqtt.py #23

Closed schwan1 closed 6 years ago

schwan1 commented 6 years ago

I can not seem to figure out what is causing this issue. I have created a copy of the broadlink-mqtt-master directory with a new name. I modified the conf file to be directed to the IP address and modified the mqtt topic. I still am getting the following error when I try to run the second instance. Please let me know where I am going wrong.

Traceback (most recent call last): File "mqtt.py", line 262, in device = get_device(cf) File "mqtt.py", line 202, in get_device logging.error('More than one Broadlink device found (' + ', '.join([d.host for d in devices]) + ')') TypeError: sequence item 0: expected string, tuple found**

schwan1 commented 6 years ago

I discovered my error. I did not modify the device.type in the mqtt.conf file.