Hi having issues setting this up, the current configuration in the docs throws an error?
the config:
climate:
- platform: heatmiser
ipaddress: YOUR_IPADDRESS
port: YOUR_PORT
tstats:
- 1:
id: THERMOSTAT_ID
name: THERMOSTAT_NAME
the error:
Testing configuration at /config
ERROR:homeassistant.config:Invalid config for [climate.heatmiser]: expected a dictionary for dictionary value @ data['tstats']. Got [OrderedDict([(1, OrderedDict([('id', 1), ('name', 'STATTEST')]))])]. (See ?, line ?). Please check the docs at https://home-assistant.io/components/climate.heatmiser/
Failed config
climate.heatmiser:
platform: heatmiser
ipaddress: 192.168.1.87
port: 23
tstats: [source /config/configuration.yaml:79]
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.6/site-packages/homeassistant/__main__.py", line 376, in <module>
sys.exit(main())
File "/usr/lib/python3.6/site-packages/homeassistant/__main__.py", line 355, in main
return scripts.run(args.script)
File "/usr/lib/python3.6/site-packages/homeassistant/scripts/__init__.py", line 53, in run
return script.run(args[1:]) # type: ignore
File "/usr/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 121, in run
dump_dict(config, reset='red')
File "/usr/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 310, in dump_dict
dump_dict(value, indent_count + 2)
File "/usr/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 317, in dump_dict
dump_dict(i, indent_count + 2, True)
File "/usr/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 307, in dump_dict
for key, value in sorted(layer.items(), key=sort_dict_key):
File "/usr/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 300, in sort_dict_key
key = str.lower(val[0])
TypeError: descriptor 'lower' requires a 'str' object but received a 'int'
Ive tried making the tstats items not a list then it passes the config check but then fails later on
the config:
climate:
- platform: heatmiser
ipaddress: YOUR_IPADDRESS
port: YOUR_PORT
tstats:
1:
id: THERMOSTAT_ID
name: THERMOSTAT_NAME
the error:
Error while setting up platform heatmiser
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/climate/heatmiser.py", line 52, in setup_platform
heatmiser, tstat.get(CONF_ID), tstat.get(CONF_NAME), serport)
File "/usr/lib/python3.6/site-packages/homeassistant/components/climate/heatmiser.py", line 69, in __init__
self.update()
File "/usr/lib/python3.6/site-packages/homeassistant/components/climate/heatmiser.py", line 119, in update
self.dcb = self.heatmiser.hmReadAddress(self._id, 'prt', self.serport)
File "/usr/lib/python3.6/site-packages/heatmiserV3/heatmiser.py", line 221, in hmReadAddress
datal = hmSendAddress(destination,0,0,0,serport)
File "/usr/lib/python3.6/site-packages/heatmiserV3/heatmiser.py", line 203, in hmSendAddress
msg = hmFormMsgCRC(destination, protocol, constants.MY_MASTER_ADDR, rw, address, payload)
File "/usr/lib/python3.6/site-packages/heatmiserV3/heatmiser.py", line 87, in hmFormMsgCRC
data = data + crc.run(data)
File "/usr/lib/python3.6/site-packages/heatmiserV3/heatmiser.py", line 58, in run
self.CRC16_Update(c)
File "/usr/lib/python3.6/site-packages/heatmiserV3/heatmiser.py", line 52, in CRC16_Update
self.Update4Bits(val>>4) # High nibble first
TypeError: unsupported operand type(s) for >>: 'str' and 'int'