Hi nmparmar
Many thanks for the reply. I have tried different syntaxes but always get an error - see below.
My set up in configuration is:-
climate:
- platform: heatmiser
ipaddress: 192.168.1.201
port: 20101
tstats:
1:
id: 1
name: Thermostat
Error without - adjacent to the ‘1’ underneath tstats
Error while setting up platform heatmiser
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 82, 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/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©
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’
Error with - adjacent to the ‘1’ underneath tstats
starting version 3.2.4
Testing configuration at /config
Failed config
climate.heatmiser:
- Invalid config for [climate.heatmiser]: expected a dictionary for dictionary value @ data[‘tstats’]. Got [OrderedDict([(1, OrderedDict([(‘id’, 1), (‘name’, ‘Thermostat’)]))])]. (See ?, line ?). Please check the docs at https://home-assistant.io/components/climate.heatmiser/
- platform: heatmiser
ipaddress: 192.168.1.201
port: 20101
tstats: [source /config/configuration.yaml:93]
- 1: [source /config/configuration.yaml:94]
id: 1
name: Thermostat
Successful config (partial)
climate.heatmiser:
Any help is appreciated.
Many thanks
Richard