remmob / itho_amber

Home Assistant Itho Daalderop Amber heatpump integration.
2 stars 0 forks source link

Error importing data #4

Closed wvdakker closed 4 months ago

wvdakker commented 4 months ago

Using HA 2024.7 I get the following error when importing data from the gateway:

2024-07-06 08:05:36.895 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Amber for itho_amber Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/itho_amber/init.py", line 63, in async_setup_entry await hub.async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 277, in async_config_entry_first_refresh await self._async_refresh( File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/itho_amber/hub.py", line 84, in _async_update_data setting_data_1 = await self.hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError

The gateway can be reached from the HA server (telnet port 502). The 'ACT' light on the gateway is blue but don't seem to blink.

Hass is installed and running.

Is this a known issue?

remmob commented 4 months ago

I'm not sure, but there seems to be any extra copy of the hub file called hub copy.py delete that from the itho_amber folder and restart Home Assistant.

I assume you got the error directly after installing, Think the problem was indeed the second file, trying to register the same asyncio calls. Have updated my production HA to 2024.7.1 (ussually I wait until the end of the month) and installed without issues. Even running 2 instances of HA doens't seem to give any problems.

wvdakker commented 4 months ago

Removed and cloned your git repo again (also restarted HA). But the error is still the same.

Yes I got it after installing. Filling in the IP address and go. After a while it stops with an error 'Unknown error occurred'

remmob commented 4 months ago

Same error code as above or different this time? is it possible to post or DM me the settings of your gateway?

wvdakker commented 4 months ago

2024-07-06 14:09:21.125 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Amber for itho_amber Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/itho_amber/init.py", line 63, in async_setup_entry await hub.async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 277, in async_config_entry_first_refresh await self._async_refresh( File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/itho_amber/hub.py", line 84, in _async_update_data setting_data_1 = await self.hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError

So the same

wvdakker commented 4 months ago

Screenshot from 2024-07-06 17-40-50

remmob commented 4 months ago

Op 6 jul. 2024 om 17:45 heeft Willem van den Akker @.***> het volgende geschreven:

Screenshot.from.2024-07-06.17-40-50.png (view on web)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

wvdakker commented 4 months ago

Which version of HA are you using? HA OS? I am using the container version of HA which has some modules not installed. However HASS I have installed.

remmob commented 4 months ago

Yes I'm running HA OS. Is pymodbus installed and which version.

remmob commented 4 months ago

Did you get the 4 way version of the gateway? And is the green link light on?

wvdakker commented 4 months ago

async-modbus 0.2.1 pymodbus 3.6.8

remmob commented 4 months ago

Pymodbus version is oke

wvdakker commented 4 months ago

I have the version with one RS485 bus. ACT is blue, LINK is green

remmob commented 4 months ago

Do you have any data at all?

remmob commented 4 months ago

Be aware, that the legionella (day) settings change when you write to the modbus. This is in software version 2,29 of the Amer

wvdakker commented 4 months ago

Any data in HA? Yes. Data from the modbus is the question. If I use MODSCAN to the device I dont get any data. Connectors on the gateway and board are connected ok. Will try a scope to see if I get data on the bus itself.

remmob commented 4 months ago

When I try with openmodscan, I get results (data) Did you try to change the modbus wires

wvdakker commented 4 months ago

With TCPDUMP I didnt see any data, so I changed the modbusgw (had 2 of them), and bingo. Guess the other gw was defective. Thanks for the support.

razor109 commented 4 months ago

With TCPDUMP I didnt see any data, so I changed the modbusgw (had 2 of them), and bingo. Guess the other gw was defective. Thanks for the support.

Which module of modbusgw did you try? I seem to have a simmilar problem, trying to use this one:

https://www.tinytronics.nl/en/communication-and-signals/serial/rs-485/waveshare-industrial-serial-server-rs485-to-poe-ethernet-module

wvdakker commented 4 months ago

I have the same module. My module was defective. So check if all connections are ok (a connected to a, b connected to b) and eds have the right color ( red/blue/blue blinking). Can you access the web interface? Compare with the settings with the earlier post. Op 10 jul 2024 09:06 schreef razor109 @.***>:

With TCPDUMP I didnt see any data, so I changed the modbusgw (had 2 of them), and bingo. Guess the other gw was defective. Thanks for the support.

Which module of modbusgw did you try? I seem to have a simmilar problem, trying to use this one: https://www.tinytronics.nl/en/communication-and-signals/serial/rs-485/waveshare-industrial-serial-server-rs485-to-poe-ethernet-module

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

wvdakker commented 4 months ago

And update with the last version in the repository...Op 10 jul 2024 10:54 schreef Willem van den Akker @.>:I have the same module. My module was defective. So check if all connections are ok (a connected to a, b connected to b) and eds have the right color ( red/blue/blue blinking). Can you access the web interface? Compare with the settings with the earlier post. Op 10 jul 2024 09:06 schreef razor109 @.>:

With TCPDUMP I didnt see any data, so I changed the modbusgw (had 2 of them), and bingo. Guess the other gw was defective. Thanks for the support.

Which module of modbusgw did you try? I seem to have a simmilar problem, trying to use this one: https://www.tinytronics.nl/en/communication-and-signals/serial/rs-485/waveshare-industrial-serial-server-rs485-to-poe-ethernet-module

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

razor109 commented 4 months ago

I have the same module. My module was defective. So check if all connections are ok (a connected to a, b connected to b) and eds have the right color ( red/blue/blue blinking). Can you access the web interface? Compare with the settings with the earlier post. Op 10 jul 2024 09:06 schreef razor109 @.>: With TCPDUMP I didnt see any data, so I changed the modbusgw (had 2 of them), and bingo. Guess the other gw was defective. Thanks for the support. Which module of modbusgw did you try? I seem to have a simmilar problem, trying to use this one: https://www.tinytronics.nl/en/communication-and-signals/serial/rs-485/waveshare-industrial-serial-server-rs485-to-poe-ethernet-module —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.>

the blue light with my unit is constant on, not blinking so maybe there is an problem with Modbus connection from device to amber. Can try to switch de cables see if it helps. In you case the light is blinking?

wvdakker commented 4 months ago

The left light is blinking once per 10 seconds (depending if you use the default polling time in HA). De middle light is steady blue (not blinking). If you dont see any blinking perhaps the A/B are switched or not well connected.

On Wed, 2024-07-10 at 07:25 -0700, razor109 wrote:

I have the same module. My module was defective. So check if all connections are ok (a connected to a, b connected to b) and eds have the right color ( red/blue/blue blinking). Can you access the web interface? Compare with the settings with the earlier post. Op 10 jul 2024 09:06 schreef razor109 @.>: With TCPDUMP I didnt see any data, so I changed the modbusgw (had 2 of them), and bingo. Guess the other gw was defective. Thanks for the support. Which module of modbusgw did you try? I seem to have a simmilar problem, trying to use this one: https://www.tinytronics.nl/en/communication-and-signals/serial/rs- 485/waveshare-industrial-serial-server-rs485-to-poe-ethernet-module —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.> the blue light with my unit is constant on, not blinking so maybe there is an problem with Modbus connection from device to amber. Can try to switch de cables see if it helps. In you case the light is blinking? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

razor109 commented 4 months ago

Is your 2nd modbusgw the same type as the first one? Or a different type?

When I powered the device over POE I could get both lights to turn blue constant, but portscan showed no open port on 502.

Ordered a new one on Amazon to see if it’s a device failure. Else I wil have to try another type. But liked to possibility to place it in DIN rail.

wvdakker commented 4 months ago

Both are the same. So you have a link and you receive data (both blue). Did you put your device in TCP-server mode? Device port must be 502. Normal you can connect to the serverport with Telnet on the device port <telnet [IP-address] 502>  If you cannot connect then you have a connection problem, however if you can not also access the web interface perhaps it is a firewall problem. You can ping the device?

On Wed, 2024-07-10 at 12:59 -0700, razor109 wrote:

Is your 2nd modbusgw the same type as the first one? Or a different type? When I powered the device over POE I could get both lights to turn blue constant, but portscan showed no open port on 502. Ordered a new one on Amazon to see if it’s a device failure. Else I wil have to try another type. But liked to possibility to place it in DIN rail. — Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you modified the open/close state.Message ID: @.***>

[1] view it on GitHub https://github.com/remmob/itho_amber/issues/4#issuecomment-2221323427 [2] unsubscribe https://github.com/notifications/unsubscribe-auth/AAM7DVKF7WG4WPLUKPDQ2X3ZLWHDVAVCNFSM6AAAAABKOHIE4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRRGMZDGNBSG4