Code Monkey home page Code Monkey logo

nilan's People

Contributors

airler avatar gllmlbrt avatar jusubbi avatar jyrkij avatar salosa avatar takethis88 avatar veista avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nilan's Issues

Concurrent connections on ModbusRTU from different integrations - read errors

I'm not sure if this is a issue with the integration or with HA DataUpdateCoordinator, so clarifying will be helpful.

I have a one Modbus serial bus, with multiple devices on it. It's connected to HA via USB-RS485 adapter.
There is 2 integrations which using Modbus RTU, one is Nilan, the other is native Modbus Integration built in a HA which reads all other devices on the bus.
Update interval for both is set to 30 sek.

When HA starts and run, both integrations tries to read registers from different devices at the same time. It resulting in communications errors and unavailable sensors.

My workaround for this is to disable Nilan integration manually and observe the led's on usb adapter. When led's stops flashing (native Modbus integration is done with serial bus for now), I'm enabling Nilan after few seconds. In that way I have those 2 integrations shifted in time with theirs readings, and everything working well.... until next HA restart.

Support for VPL 25

Hello,

I have a VPL25c with a CTS602 board with old push button display. I believe this is very similar to VPL 15c which is already supported by this integration.

I replaced the CTS600 with a CTS602 - 512 motherboard back in 2021, to get Modbus interface. The board runs sw version 2.37.C. I've used a Modbus TCP adapter by the name of Hi-flying elfin EE11 (RS485 to ModBus TCP) to control VPL25c manually up until this point and has been working fine. But I would very much get it nicely integrated to Home Assistant

When I try to add it this integration to home assistant with the ip address it says device not supported. How can I help to get this VPL28c supported by this integration?

'ModbusHub' object has no attribute 'async_pymodbus_call' 2023.9

Hello, just updated to 2023.09.b0 to test and got the below error. I am unable to clearly determine what the core issue is, but perhaps you can ?

Logger: homeassistant.config_entries
Source: custom_components/nilan/device.py:120
Integration: Nilan (documentation, issues)
First occurred: 10:50:22 (1 occurrences)
Last logged: 10:50:22

Error setting up entry Nilan for nilan
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nilan/init.py", line 41, in async_setup_entry
await device.setup()
File "/config/custom_components/nilan/device.py", line 61, in setup
hw_type = await self.get_machine_type()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nilan/device.py", line 120, in get_machine_type
result = await self._modbus.async_pymodbus_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModbusHub' object has no attribute 'async_pymodbus_call'

Automations

Should one still be able to run following type of holding register services even your perfect HACS is active? Looking to build Nordpool sensor triggered automations w/o python skills, but e.g. below service does not turn PILP off:

service: modbus.write_register
data:
address: 1001
slave: 30
value: 0
hub: hub1

Originally posted by @AlvinKleine in #25 (comment)

Nilan EC9 with CTS 602

Hey I have this Nilan EC9 with CTS 602 and got your setup working now nicely but few question still pops to existence:

I can set the Nilan: Top Water Heater (Electric) from the GUI but could not do any automations to it, is it just me or is it missing from the code. I used Kimmo HyvΓΆnen's original python examples and with that I can set it manually by running that python script.

Other thing I was looking for is to set the Bottom water temp to control the compressor and room intake to control cooling/ventilation/heating as CTS 602 seems not to have away to control them directly. All this I can do with my own script.

Any helps is greatly appreciated.

nilan: Error on device update!

@veista - thanks so much for adding support for my Nilan. Got it all up and running, nice dashboard etc - great stuff!

I get 8x errors in the logs on startup. I seem to be getting other data through ok, but wanted to let you know.

Seems to be related to the below ...
get_supply_heating_pid_time
get_compressor_stop_time
get_low_temperature_compressor_start_setpoint
get_max_return_step
get_min_supply_step
get_central_heat_type
get_central_heat_select
get_air_heat_select

I don't seem to have similarly named entities created.

Please let me know if I can help, or get further logs etc etc - very happy to help! πŸ˜€

Logger: homeassistant.components.number
Source: custom_components/nilan/device.py:1438 
Integration: Number (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/number.py", line 579, in async_update
    self._attr_native_value = await getattr(self._device, self._attribute)()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1438, in get_supply_heating_pid_time
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Logger: homeassistant.components.number
Source: custom_components/nilan/device.py:1528 
Integration: Number (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/number.py", line 579, in async_update
    self._attr_native_value = await getattr(self._device, self._attribute)()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1528, in get_compressor_stop_time
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Logger: homeassistant.components.number
Source: custom_components/nilan/device.py:1124 
Integration: Number (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/number.py", line 579, in async_update
    self._attr_native_value = await getattr(self._device, self._attribute)()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1124, in get_low_temperature_compressor_start_setpoint
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Logger: homeassistant.components.select
Source: custom_components/nilan/device.py:1840 
Integration: Select (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1840, in get_max_return_step
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Logger: homeassistant.components.select
Source: custom_components/nilan/device.py:1825 
Integration: Select (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1825, in get_min_return_step
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range


Logger: homeassistant.components.select
Source: custom_components/nilan/device.py:1810 
Integration: Select (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1810, in get_min_supply_step
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range


Logger: homeassistant.components.select
Source: custom_components/nilan/device.py:1810 
Integration: Select (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1810, in get_min_supply_step
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range


Logger: homeassistant.components.select
Source: custom_components/nilan/device.py:439 
Integration: Select (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 439, in get_central_heat_type
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Logger: homeassistant.components.select
Source: custom_components/nilan/device.py:453 
Integration: Select (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 453, in get_central_heat_select
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Logger: homeassistant.components.select
Source: custom_components/nilan/device.py:167 
Integration: Select (documentation, issues) 
First occurred: 6:23:02 am (1 occurrences) 
Last logged: 6:23:02 am

nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 938, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 167, in get_air_heat_select
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

`

Upgrade to 2023.7 core breaks Nilan connection

I have Nilan EC9 with CT602 mobus v22 connected to HA (Core 2023.6.3) through Waveshare RS485-to-Eth working as intended. When I upgrade to 2023.7 series core something breaks and connection between HA and Nilan is lost. The issue is replicable and connection returns when reverting to 2023.6 core from backups.

Failed to call service

Issue is that services water_heater.turn_off and water_heater.turn_on cannot be called with Developer Tools. Also automations related to these services are not working. Still tough water heater can be turned on and off from dashboard. Workaround for this issue for me would be possibility to change water heater target temperature but that seems not to be an option in automations menu. Any idea what could cause this?

image

Unable to add integration

image
Unable to add integration. Is it necessary to edit configuration.yaml manually, I just don't know how?

Comfort 300LR light -Various errors in HA

Hello again

Everything running smoothly, with debug enabled I can see various errors repeating itself. Just thought Id throw them in here. Most of them you probably already know why theyre showing. Sorry for the lame formatting, just copy/pasta directly from the HA log viewer.

Could not read get_min_return_step
8:32:17 PM – (ERROR) Nilan (custom integration) - message first occurred at March 18, 2023 at 2:50:54 PM and shows up 27952 times
Could not read get_min_supply_step
8:32:16 PM – (ERROR) Nilan (custom integration) - message first occurred at March 18, 2023 at 2:50:54 PM and shows up 27953 times
Pymodbus: Nilan: Exception Response(131, 3, IllegalAddress)
8:32:16 PM – (ERROR) Modbus - message first occurred at March 18, 2023 at 2:50:54 PM and shows up 83879 times
Could not read get_hmi_language
8:32:14 PM – (ERROR) Nilan (custom integration) - message first occurred at March 18, 2023 at 2:50:54 PM and shows up 27953 times
Could not read get_high_humidity_step
8:32:12 PM – (ERROR) Nilan (custom integration) - message first occurred at 8:28:12 PM and shows up 2 times
Could not read get_t15_user_panel_temperature
8:32:09 PM – (ERROR) Nilan (custom integration) - message first occurred at March 18, 2023 at 2:49:21 PM and shows up 27964 times
Could not read get_max_return_step
8:32:07 PM – (ERROR) Nilan (custom integration) - message first occurred at March 18, 2023 at 2:50:54 PM and shows up 27952 times
Could not read get_supply_power_at_level_3
8:31:42 PM – (ERROR) Nilan (custom integration) - message first occurred at March 18, 2023 at 2:49:53 PM and shows up 3 times
Could not read get_max_supply_air_summer_setpoint
8:30:55 PM – (ERROR) Nilan (custom integration) - message first occurred at 8:29:17 PM and shows up 2 times
Could not read get_min_supply_air_winter_setpoint
8:30:54 PM – (ERROR) Nilan (custom integration) - message first occurred at 8:29:16 PM and shows up 2 times
Could not read get_smoke_alarm_state
8:30:52 PM – (ERROR) Nilan (custom integration) - message first occurred at 8:29:13 PM and shows up 2 times

Unsupported Device: VP 18ek

Trying to install the integration raises error: Unsupported Device.
Debug log reads:
2022-12-19 18:35:13.263 DEBUG (MainThread) [custom_components.nilan.config_flow] Device Type 20 not found in supported devices list

QModMaster reveals the following:
Bus.Version: 9
App.VersionMajor: 2.
App.VersionMinor: 35
App.VersionRelease: a

On CTS 602 HMI:
TYPE: VP 18ek
SOFTWARE: 1 2.35.a

The device should essentially be the same as VP 18cek, but missing the cooling feature.

MQTT

Is support for MQTT planned?

Feature request

Hi,

For a newbie, any suggestions on how to customize your code to also capture Nilan Compact version with 602 control ?
I guess it should be simple to add the relevant input and holding registers that are added for the water heating.
The product
https://www.nilan.no/produkter/ventilasjon-med-oppvarming/ventilasjon-varmtvann-og-oppvarming/compact-p-air9
The Modbus mapping.
https://www.nilan.no/Files/Files/Norsk/Download/7.%20Modbus%20-%20BACnet/2021-01-Modbus_CTS602_w_HMI350T_Modbus.pdf

The newbie tip would involve how to customize and install manually instead of using HACS.

Idea of enhancement: Soft buttons and display replacement va modbus

Hi again,

The actual text displayed on the CTS602 panel is transmitted over modbus at the following input addresses 2002 to 2011:
image

I had that working just fine over MQTT. So I could read exactly what what printed on the panel at the system, which is in a cabinet. Avoiding having to open the cabinet to verify, and was a good way to check immidate effect of the change of state etc...
So I added it here:
image

Now also, key press can be written here at the following holding addresses:
image
That part I never managed to make work over MQTT.

But if both worked here, we could create buttons in lovelace reproducing exactly the panel and calling for service for modbus writing reproducing exactly the panel on a UI, and also having the whole complete menu available from HA.

That would apply/work for all Nilan presumably...

I could help working on this, but I might need a couple of pointer to have the text sent over the integration, and the method to write keypresses to holding reg.

If you think it is not useful, feel free to close the issue, and I might give it a long shot on my own as a fork.

Configuration guidance for Sharewave Ethernet-to-RS485 converter

Hi,

My setup:

image

image

I get "Invalid Response from Device" when trying to add the integration. Any ideas where the problem would be?

The modbus integration used to work in Openhab and previous USB-converter but I changed to ethernet-based for this specific integration in HA.

Mapping Device Firmware Version to Modbus Version

Hi,

I am trying to support all devices in the Nilan CTS602 family, but the documentation is kind of lacking. If you are using this Integration and have a device outside of the following list, please comment here with your device firmware version and ModBus Version as stated by the integration.

Thank You!

Firmware: ModBus Version
2.00.q - 2.11.d: 1
2.11.e: 2
2.12.a - 2.15: 3
2.16.a - 2.20.a: 4
2.20.b - 2.21.a: 5
2.21.b - 2.30.a: 6
2.30.b - 2.30.e: 7
2.31.d: 8
2.35.a: 9
2.37.c: 11
2.38.r - 2.38.t: 19
1.1.25 - 1.6.21: 20
1.6.26: 21
1.6.43-1.6.56: 22

Unsupported device (Comfort 300 LR Light HMI/Waveshare RS485 to ETH (B)

Hello

Thanks for your great work, I am very much looking forward to finally getting my HVAC online at some point.

I've been struggling with getting the plugin to connect with my Comfort 300 however. I've already been over all the wiring, termination etc. I have an powermeter online on the bus as well (PME3250) and I've measured correct voltage levels and "activity" on connection terminals at the plug on the HVAC unit itself. So, im fairly confident that this issue has to solved on "the software side".
Im using the waveshare, and pasting in my config at the end just for reference.

I hope the info supplied below is what you need, or else please let know. Thanks again.

HA debug log when trying to configure the plugin:

2023-03-07 21:07:09.339 DEBUG (MainThread) [custom_components.nilan.config_flow] Device Type 2 not found in supported devices list

Modelplate:

Screenshot from 2023-03-07 21-09-03

HMI:

Screenshot from 2023-03-07 21-09-22

Waveshare config (for reference):

Screenshot from 2023-03-07 21-13-55

CTS700 - what is needed?

Ive currently added my Air 9 with CTS700 through modbus into HA with the network cable attached to the system.
Currently i'm mapping each adress (Mine is a none geo version).

What is needed to add support for CTS700 too?

Mine is currently added to HA:

`modbus:
  - name: nilan
    type: tcp
    host: 192.168.2.217
    port: 502
    sensors:
      - name: nilan_humidity
	# Current humidity
        address: 21776
        unit_of_measurement: "%"
        slave: 1
      - name: nilan_t20_outdoor_temperature
	# Outdoor unit temperatur
        unit_of_measurement: "Β°C"
        slave: 4
        address: 20688
        count: 1
        scale: 0.1`

etc. etc.

Some data is placed at slave 1 (Indoor unit), and the outdoor unit data is placed on slave 4 for instance.
Latest ModBus guide i could find is dated back in 2018, but seems to be working somewhat atleast.
https://www.en.nilan.dk/Files/Files/Engelsk/Downloads/7.%20Modbus%20-%20BACnet/2018_04_Modbus_CTS700_Modbus_protokol.pdf

'Invalid response from device'

Trying to create serial connection to Nilan, but getting error "invalid response from device".

image

Setup

  • HA on Raspberry PI 4
  • CTI USB-Nano-485 Interface Converter (connected to HA USB0)
  • Nilan CTS602 with SW 2.38

...any thoughts?

Br
Beginner

Modbus forwarder

Hi, do you have any experience with modbus forwarder? Your extension works pretty well until I try change for example top boiler temperature. The value is not changed in HA, but also it looks like sometimes there is an error on forwarder and sometimes there is no error. I am using modbus2usb for years but currently I have some time to create forwarder to allow connect HA to Nilan. Whereas the forwarder is so simple I am not sure where should I take a look. Do you have any hint? Thanks

Nilan EC9 Modbus - Incomplete message received

As defined in #7

the outcome in logger for pymodbus.transaction when trying to connect:

[pymodbus.client.sync] Connection to Modbus server established. Socket ('192.168.1.155', 60163)
[pymodbus.transaction] Current transaction state - IDLE
[pymodbus.transaction] Running transaction 1
[pymodbus.transaction] SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1e 0x3 0x3 0xe8 0x0 0x1
[pymodbus.client.sync] New Transaction state 'SENDING'
[pymodbus.transaction] Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
[pymodbus.transaction] Incomplete message received, Expected 64008 bytes Recieved 14 bytes !!!!
[pymodbus.transaction] Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
[pymodbus.transaction] RECV: 0xfa 0x7 0x13 0x2 0xfa 0x2 0x28 0x5f 0x2a 0x72 0xa5 0xc1 0xfa 0xff
[pymodbus.framer.socket_framer] Processing: 0xfa 0x7 0x13 0x2 0xfa 0x2 0x28 0x5f 0x2a 0x72 0xa5 0xc1 0xfa 0xff
[pymodbus.framer.socket_framer] Frame check failed, ignoring!!
[pymodbus.transaction] Getting transaction 1
[pymodbus.transaction] Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'

Home Assistant 2023.9 broke Nilan integration - "Failed to set up"

Hey @veista - hope you're well!

Just raising this one as it seems that Home Assistant 2023.9 has broken my Nilan integration. 😒
It was working fine before the update, wouldn't start up after the update.

Screenshot 2023-09-07 at 9 38 25 am

I'm getting the below in the logs.

Is there more information I need to add to help here?
Debug logs etc?

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/nilan/device.py:120 
Integration: Nilan (documentation, issues) 
First occurred: 9:43:07 am (1 occurrences) 
Last logged: 9:43:07 am

Error setting up entry Nilan Combi 302 for nilan
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/__init__.py", line 41, in async_setup_entry
    await device.setup()
  File "/config/custom_components/nilan/device.py", line 61, in setup
    hw_type = await self.get_machine_type()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 120, in get_machine_type
    result = await self._modbus.async_pymodbus_call(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModbusHub' object has no attribute 'async_pymodbus_call'

T4 sensor

Hi, I have a feeling if there is an error with the "Waste Air Temperature" display on the Combi 302 model. As the sensor.py file has the same name for the T4 and T6 sensors.
It is precisely the data from the T4 sensor that I am missing. You can look at it? Thank you.

fd

After Upgrade Re-Installation raises an error

Hi,

have upgraded to version 1.2.3 running on HA 10.5 with 2023.8.3.

I've Nilan integrated via Serial, which was working now for a while.

Now after the HACS Upgrade, restart of HA and unplug/plug of Nilan USB, I've clicked on "Add Integration" and have selected the Interface type "Serial".

Normally next step is the selection of the usb path but now the system is throwing a popup with title "Fehler" without any further information.
image

Enabling log, restart HA and trying same to find this in the system log.

Any idea how to solve it?

`Logger: aiohttp.server
Source: data_entry_flow.py:398
First occurred: 19:24:21 (1 occurrences)
Last logged: 19:24:21

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 181, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 292, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 398, in _async_handle_step
if not isinstance(result["type"], FlowResultType):
~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
`

Doesn't work with 2023.9?

After updating to version 2023.9 of Hass, the integration couldn't find any entities? Worked before without issues, but after the update the entities were on state unavailable. After completely deleting the nilan integration and a reinstall, the integration has a setup failure, and no entities are added. The USR-TCP settings haven't been changed en is still connected to the network. (Same port) Rebooted my network (unify), my USR and home assistant, but nothing works..

Fresh install of 1.2.3 yields "IndexError: list index out of range" when accessing registers

I've done a fresh install of version 1.2.3 into my Home Assistant 2023.7.3. Installed by unzipping the Github release zip file. Communicating with a COMBI 302 T over Modbus-TCP.

The installation itself went fine from a UI perspective (no errors reported, although all the detailed sensors took a while to appear). However, there are a few IndexError entries in the log:

2023-08-22 07:37:05.541 INFO (MainThread) [homeassistant.setup] Setting up nilan
2023-08-22 07:37:05.541 INFO (MainThread) [homeassistant.setup] Setup of domain nilan took 0.0 seconds
2023-08-22 07:37:05.614 INFO (SyncWorker_20) [homeassistant.components.modbus.modbus] modbus Nilan communication open
2023-08-22 07:37:05.950 INFO (MainThread) [homeassistant.components.button] Setting up button.nilan
2023-08-22 07:37:05.952 INFO (MainThread) [homeassistant.components.climate] Setting up climate.nilan
2023-08-22 07:37:05.954 INFO (MainThread) [homeassistant.components.water_heater] Setting up water_heater.nilan
2023-08-22 07:37:05.957 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.nilan
2023-08-22 07:37:05.959 INFO (MainThread) [homeassistant.components.select] Setting up select.nilan
2023-08-22 07:37:05.961 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.nilan
2023-08-22 07:37:05.964 INFO (MainThread) [homeassistant.components.number] Setting up number.nilan
2023-08-22 07:37:05.965 INFO (MainThread) [homeassistant.components.switch] Setting up switch.nilan
2023-08-22 07:37:05.969 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new button.nilan entity: button.ni
lan_synchronize_time_and_date
2023-08-22 07:37:06.107 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_modbus_version
2023-08-22 07:37:06.177 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_controller_board_temperature_t0
2023-08-22 07:37:06.246 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_fresh_air_intake_temperature_t1
2023-08-22 07:37:06.313 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_waste_air_temperature_t4
2023-08-22 07:37:06.379 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_condenser_temperature_t5
2023-08-22 07:37:06.447 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_waste_air_temperature_t6
2023-08-22 07:37:06.516 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_supply_air_temperature_t7
2023-08-22 07:37:06.591 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_return_air_temperature_t10
2023-08-22 07:37:06.664 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_user_panel_temperature_t15
2023-08-22 07:37:06.731 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_humidity
2023-08-22 07:37:06.796 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_alarms_active
2023-08-22 07:37:06.865 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_control_state
2023-08-22 07:37:06.931 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_time_in_control_state
2023-08-22 07:37:06.999 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_supply_fan_level
2023-08-22 07:37:07.077 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_return_fan_level
2023-08-22 07:37:07.143 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_days_since_air_filter_change
2023-08-22 07:37:07.209 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.ni
lan_days_to_air_filter_change
2023-08-22 07:37:07.275 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_climate_season
2023-08-22 07:37:07.341 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_exchanger_efficiency
2023-08-22 07:37:07.410 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_24h_average_humidity
2023-08-22 07:37:07.477 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_ventilation_state
2023-08-22 07:37:07.544 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_return_fan_speed
2023-08-22 07:37:07.610 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_supply_fan_speed
2023-08-22 07:37:07.684 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_time
2023-08-22 07:37:07.751 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.nilan entity: sensor.nilan_after_heating_type
2023-08-22 07:37:07.818 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_cooling_mode_ventilation_level
2023-08-22 07:37:07.898 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_air_filter_alarm_interval
2023-08-22 07:37:07.964 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_cooling_setpoint_offset
2023-08-22 07:37:08.030 ERROR (MainThread) [homeassistant.components.select] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 167, in get_air_heat_select
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:08.096 ERROR (MainThread) [homeassistant.components.select] nilan: Error on device update!
Traceback (most recent call last):
IndexError: list index out of range
2023-08-22 07:37:08.096 ERROR (MainThread) [homeassistant.components.select] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 453, in get_central_heat_select
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:08.163 ERROR (MainThread) [homeassistant.components.select] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 439, in get_central_heat_type
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:08.230 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_low_humidity_ventilation_level
2023-08-22 07:37:08.297 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_high_humidity_ventilation_level
2023-08-22 07:37:08.364 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_user_menu_lock
2023-08-22 07:37:08.432 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_low_outdoor_temp_ventilation_level
2023-08-22 07:37:08.497 ERROR (MainThread) [homeassistant.components.select] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1810, in get_min_supply_step
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:08.563 ERROR (MainThread) [homeassistant.components.select] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1825, in get_min_return_step
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:08.628 ERROR (MainThread) [homeassistant.components.select] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/select.py", line 286, in async_update
    self._attr_current_option = str(await getattr(self._device, self._attribute)())
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1840, in get_max_return_step
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:08.696 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_indoor_air_quality_control
2023-08-22 07:37:08.767 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_pre_heating_effect
2023-08-22 07:37:08.833 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_pre_heating_temperature
2023-08-22 07:37:08.970 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.nilan entity: binary_sensor.nilan_user_selection_1
2023-08-22 07:37:09.036 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.nilan entity: binary_sensor.nilan_smoke_alarm
2023-08-22 07:37:09.103 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.nilan entity: binary_sensor.nilan_bypass_flap
2023-08-22 07:37:09.170 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.nilan entity: binary_sensor.nilan_compressor
2023-08-22 07:37:09.236 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.nilan entity: binary_sensor.nilan_defrost
2023-08-22 07:37:09.303 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_minimum_supply_air_temperature_in_summer
2023-08-22 07:37:09.389 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_minimum_supply_air_temperature_in_winter
2023-08-22 07:37:09.457 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_change_to_summer_state_setpoint
2023-08-22 07:37:09.522 ERROR (MainThread) [homeassistant.components.number] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/number.py", line 579, in async_update
    self._attr_native_value = await getattr(self._device, self._attribute)()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1124, in get_low_temperature_compressor_start_setpoint
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:09.593 ERROR (MainThread) [homeassistant.components.number] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/number.py", line 579, in async_update
    self._attr_native_value = await getattr(self._device, self._attribute)()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1528, in get_compressor_stop_time
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:09.668 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_room_temperature_neutral_zone
2023-08-22 07:37:09.734 ERROR (MainThread) [homeassistant.components.number] nilan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/nilan/number.py", line 579, in async_update
    self._attr_native_value = await getattr(self._device, self._attribute)()
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 1438, in get_supply_heating_pid_time
    result.registers[0].to_bytes(2, "little", signed=False),
    ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2023-08-22 07:37:09.801 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_maximum_time_in_high_humidity_ventilation
2023-08-22 07:37:09.869 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_low_outdoor_temp_setpoint
2023-08-22 07:37:09.937 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_supply_heater_delay
2023-08-22 07:37:10.004 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_low_room_temperature_setpoint
2023-08-22 07:37:10.073 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_defrost_start_setpoint
2023-08-22 07:37:10.140 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_defrost_stop_setpoint
2023-08-22 07:37:10.215 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_supply_fan_power_at_level_1
2023-08-22 07:37:10.283 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_supply_fan_power_at_level_2
2023-08-22 07:37:10.351 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_supply_fan_power_at_level_3
2023-08-22 07:37:10.424 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_supply_fan_power_at_level_4
2023-08-22 07:37:10.492 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_return_fan_power_at_level_1
2023-08-22 07:37:10.566 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_return_fan_power_at_level_2
2023-08-22 07:37:10.635 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_return_fan_power_at_level_3
2023-08-22 07:37:10.704 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new number.nilan entity: number.nilan_return_fan_power_at_level_4
2023-08-22 07:37:10.974 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new select.nilan entity: select.nilan_reset_alarm
2023-08-22 07:37:11.458 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new climate.nilan entity: climate.nilan_hvac

Please let me know if there's anything I can do to help investigate further. Thanks for a great integration so far!

VP 18cek: Additional holding registers

Would it be possible to add holding registers:

Output.CenCircPump | 118 | EK circulation pump | VGU-VP
Output.CenHeat_1 | 119 | EK heater relays | VGU-VP
Output.CenHeat_2 | 120 | -- | VGU-VP
Output.CenHeat_3 | 121 | -- | VGU-VP

It would show user which central floor heating relays are on and if the circulating pump is on.

Also I think the VP 18CEK should also be able to show:
Input.T13_Return | 213 | 100 | Β°C | EK return temperature | VGU-VP

It gives user feedback how much heat has been lost during the circulation

Integrating VP18cCom via RS485 serial USB

Hi,

I'm trying to connect my Nilan VP18cCom via RS485 serial USB with HA (using also CTS602).
I'm getting the error message "Unsupported Device" during the integration of Nilan.

I'm new at HA, the same interface was working before via PI and Node Red.
I've added this into configration.yaml and restarted HA:
# Logger logger: default: critical logs: custom_components.nilan: debug custom_components.hacs: debug

But I'm still unable to see any log entries in Log-book. Have also activated debug protocoll for the HACS device.
Here is my selection:
image

As the path seems to be correct:
image

Time betw.de-icing

Please add Time between defrosts. This option is available in the HMI. Thank you.

No Response received from the remote unit/Unable to decode response

Hi,
Currently on 1.1.1B, and since release 1.0.25 I have after many hours of perfect function and error as follow:

Logger: homeassistant.components.modbus.modbus
Source: components/modbus/modbus.py:391
Integration: Modbus (documentation, issues)
First occurred: 05:58:02 (1 occurrences)
Last logged: 05:58:02

Pymodbus: Nilan: Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response

And then all entities generate an error like this one:

Logger: custom_components.nilan.device
Source: custom_components/nilan/device.py:2204
Integration: Nilan (documentation, issues)
First occurred: 05:58:02 (988 occurrences)
Last logged: 08:42:34
Could not read get_time

Reloading the integration does not fix it.
Restarting Hass core does not fix it.
To make it work again I need to reboot the bridge and then reload the integration.
Then it work flowlessly for some 8-10 hours and crashes again...

I will try now to revert to pre-1.0.25 and see over long time if it occurs again...

My device is Comfort series we just added to the supported devices.
This did not occur before 1.0.25 ( in the beta versions we tested before).

Unsupported Device: VPL 15

Debug log:

2023-01-10 18:35:09.225 DEBUG (MainThread) [custom_components.nilan.config_flow] Device Type 4 not found in supported devices list

Attached is a picture of the plate.
IMG_1151

Error importing config flow

Hello,

Wanted to take the fresh 2022.2.0b1 today, after installing it i get the following error:

Logger: homeassistant.config_entries
Source: config_entries.py:1211
First occurred: 08:33:14 (1 occurrences)
Last logged: 08:33:14

Error importing platform config_flow from integration nilan to set up nilan configuration entry: No module named 'pymodbus.client.sync'

So the integration does not load.

Tried redownloading the custom integration, and restart again, but not improvement.
Reverted to 2023.1.7 and it works again just fine.

Do you know of a major change of pymodbus in the upcoming HA updates ?
I could find similar issues reported in earlier upgrade of HA here:
https://github.com/WillCodeForCats/solaredge-modbus-multi/issues/162

And I can see that in 2022.2, core pymodbus bumped to 3.1.1.
https://github.com/home-assistant/core/pull/86513
I will try to change that in the manifest and see if that works.

Not sure if it is the same reason. Also home assistant now requires python 3.10 minimum, not sure if related.

Translation Help

If you are a native speaker of any language not yet supported or want to improve the translations, please do so and leave a pull request.

You can use the en.json Translation File as a template.

Thank You!

P.S. Please note that not all translated lines, such as entity names show up yet in the HA frontend.

Defrost ventilation level

Hi. Query. When setting the defrost ventilation level to "none", I think the unit does not respond. Is it a feature that the fans work even during defrost or is it a bug?

Integration called async_setup_platforms will fail in version 2023.3

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 06.02.02 (1 occurrences)
Last logged: 06.02.02

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for nilan using this method at custom_components/nilan/init.py, line 43: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

Unknown Device - Combi Polar 302 HMI

Hey there, thanks for your work on this integration.

I've tried to install, and I'm getting a device not supported error.

Device type plate below.

Screenshot 2023-08-13 at 9 19 52 pm

Photo showing "Show Data => Type" from CTS602 controller below.

Screenshot 2023-08-13 at 9 21 45 pm

Believe from a previous post that this is what you need from the debug logs? If you need more, please let me know - will be very happy to help.

2023-08-13 21:13:26.622 DEBUG (MainThread) [custom_components.nilan.config_flow] Device Type 33 not found in supported devices list

Thanks in advance!

New Device Nilan Comfort 300 (Top)

Hi,
I think I got the Modbus bridge running, and now I get an error when trying to set up the integration through config flow.
"invalid response from device".
image

I checked the logs, on debug mode and there is no entry for the custom integration. I suspect it is due to an unsupported device.

Any idea ?
I do not have HMI panel. Only CTS602.
Item No.: "71104F", Model: "Comfort 300 Top" from year 2015

Nilan <-> Waveshare RS485-ethernet <-> HA Nilan integration 'failed to connect' error.

Hi again and sorry for bothering with stupid questions (perhaps)

My setup:
Nilan EC CTS602
Waveshare RS485 TO ETH (B) converter https://www.waveshare.com/wiki/RS485_TO_ETH_(B)
Raspberry Pi 3 and Home Assistant running in container
Nilan integration installed from HACS

When trying to add integration, I get 'Failed to connect' error:
image

I've managed to set up my waveshare converter (or at least I thinks so):
image
image

Loggin gives following:
'2022-12-20 00:14:37.435 ERROR (MainThread) [pymodbus.client.sync] Connection to (192.168.1.200, 502) failed: timed out'

I'm quite sure that this has something to do with my waveshare configs? First I thought that this problem is caused by running HA in container and mapping not workin between container and host. But then found out that Host <-> HA running in container have all the ports opened as a 'default' I guess.

When loggin in to my router settings, I can see waveshare IP in the ARP/RARP Table.

Perhaps some of you who has managed to get this integration work with waveshare could help. All the help is highly appreciated and hopefully even rewarded in the end.

Warnings: Sensor device class, measurement and unit are undef.

Logger: homeassistant.components.sensor
Source: components/sensor/init.py:605
Integration: Sensori (documentation, issues)
First occurred: 06.02.03 (7 occurrences)
Last logged: 06.02.04

Sensor sensor.nilan_climate_season has device class None, state class measurement and unit None thus indicating it has a numeric value; however, it has the non-numeric value: Winter (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.nilan_display_text_line_1 has device class None, state class measurement and unit None thus indicating it has a numeric value; however, it has the non-numeric value: AUTO (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.nilan_display_text_line_2 has device class None, state class measurement and unit None thus indicating it has a numeric value; however, it has the non-numeric value: >2< 26Β°C (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.nilan_time has device class None, state class measurement and unit None thus indicating it has a numeric value; however, it has the non-numeric value: 2023-02-03 06:24:14 (<class 'datetime.datetime'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.nilan_after_heating_type has device class None, state class measurement and unit None thus indicating it has a numeric value; however, it has the non-numeric value: No Heater (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.