So I got the latest file… Commented out climate and switch referring to broadlink… deleted pycache folder…
Startup no errors
I have two broadlink devices
Removed the comment from the following code
switch:
- platform: broadlink
host: XXX.XXX.XXX.XXX
mac: 'XX:XX:XX:XX:XX'
switches:
tv_lg:
friendly_name: "LG TV"
command_on: 'JgBYAAABKZMSExITEjgSExITEhMRFBETEjgSOBITEjgROBI4EjgSOBEUERMSExI4EhMSExITERQROBI4EjgSExI3EjgSOBI4EgAFKQABKUoSAAxcAAEpShIADQU='
command_off: 'JgBYAAABKZMSExITEjgSExITERQRExITEjgSOBITETgSOBI4EjgROBITEhMSExI4EhMSExEUERMSOBI4EjgSExE4EjgSOBI3EgAFKgABKUkSAAxdAAEoShIADQU='
Got the error
2018-06-27 08:43:38 INFO (MainThread) [homeassistant.components.switch] Setting up switch.broadlink
2018-06-27 08:43:38 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
TypeError: init() takes 3 positional arguments but 4 were given
The commented that line out and uncommented another block
- platform: broadlink
host: XXX.XXX.XXX.XXX
mac: 'XX:XX:XX:XX:XX'
Error
2018-06-27 08:48:37 INFO (MainThread) [homeassistant.components.switch] Setting up switch.broadlink
2018-06-27 08:48:37 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
Commented that out… no errors…
removed comment from the last block of code I have
climate:
- platform: broadlink
name: Living Room AC
host: XXX:XXX:XXX:XXX
mac: 'XX:XX:XX:XX:XX'
ircodes_ini: 'custom_components/broadlink_climate_codes/fujitsu.ini'
min_temp: 16
max_temp: 30
target_temp: 20
temp_sensor: sensor.temperature_158d0001fa985e
default_operation: off
default_fan_mode: mid
customize:
operations:
- 'off'
- idle
- cool
- heat
fan_modes:
- low
- mid
- high
- auto
Get the error
2018-06-27 08:53:19 INFO (MainThread) [homeassistant.components.climate] Setting up climate.broadlink
2018-06-27 08:53:19 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform broadlink
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 129, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/asyncio/coroutines.py”, line 212, in coro
res = func(*args, **kw)
File “/config/custom_components/climate/broadlink.py”, line 92, in async_setup_platform
broadlink_device = broadlink.rm((ip_addr, 80), mac_addr, None)
TypeError: init() takes 3 positional arguments but 4 were given
So something wrong with any of the configs??