Legrand/Bticino MyHome

Excuse me Julien, but has something changed regarding thermoregulation? I have a 4-zone control unit, now even with the master version I can’t see the control unit. There were no problems with the previous release.

  climate:
    central_unit:
      zone: '81'
      name: Termo soggiorno
      heat: True
      cool: False
      standalone: False
      central: True
      manufacturer: BTicino
      model: HC4695
2023-03-10 15:29:07.722 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Cover 65 stopped.
2023-03-10 15:29:07.753 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#2*65##` was successfully sent.
2023-03-10 15:29:07.929 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*110#0190*#0#81##`
2023-03-10 15:29:07.966 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*21*#0#81##`
2023-03-10 15:29:07.985 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#4*#0#81##` received response `*4*110#0190*#0#81##`.
2023-03-10 15:29:08.026 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#4*82##` was successfully sent.
2023-03-10 15:29:08.659 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*0*0207##`
2023-03-10 15:29:08.659 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's main sensor is reporting a temperature of 20.7°C.
2023-03-10 15:29:08.684 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#4*83##` received response `*#4*82*0*0207##`.
2023-03-10 15:29:08.745 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*14*0190*3##`
2023-03-10 15:29:08.745 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's target temperature is set to 19.0°C.
2023-03-10 15:29:09.028 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*12*0180*3##`
2023-03-10 15:29:09.028 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's local target temperature is set to 18.0°C.
2023-03-10 15:29:09.056 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*1*82##`
2023-03-10 15:29:09.056 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's mode is set to 'heat'.
2023-03-10 15:29:09.059 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#4*84##` received response `*#4*82*12*0180*3##`.
2023-03-10 15:29:09.312 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*14*0190*3##`
2023-03-10 15:29:09.313 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's target temperature is set to 19.0°C.
2023-03-10 15:29:09.316 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*06##` received response `*#4*82*14*0190*3##`.
2023-03-10 15:29:09.413 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*13*11##`
2023-03-10 15:29:09.413 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's local offset is set to -1°C.
2023-03-10 15:29:09.459 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*1*1*06##`
2023-03-10 15:29:09.459 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Switch 06 is switched on.
2023-03-10 15:29:09.462 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*07##` was successfully sent.
2023-03-10 15:29:09.491 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*08##` received response `*#4*82*13*11##`.
2023-03-10 15:29:09.547 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#1*08##`
2023-03-10 15:29:09.547 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Unsupported message type: `*#1*08##`
2023-03-10 15:29:09.552 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*08##` was successfully sent.
2023-03-10 15:29:10.091 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*0*0204##`
2023-03-10 15:29:10.092 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's main sensor is reporting a temperature of 20.4°C.
2023-03-10 15:29:10.126 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*09##` received response `*#4*83*0*0204##`.
2023-03-10 15:29:10.199 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*14*0190*3##`
2023-03-10 15:29:10.199 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's target temperature is set to 19.0°C.
2023-03-10 15:29:10.483 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*12*0190*3##`
2023-03-10 15:29:10.483 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's local target temperature is set to 19.0°C.
2023-03-10 15:29:10.491 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*1*83##`
2023-03-10 15:29:10.491 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's mode is set to 'heat'.
2023-03-10 15:29:10.503 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*32##` received response `*#4*83*12*0190*3##`.
2023-03-10 15:29:10.781 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*14*0190*3##`
2023-03-10 15:29:10.781 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's target temperature is set to 19.0°C.
2023-03-10 15:29:10.789 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*25##` received response `*#4*83*14*0190*3##`.
2023-03-10 15:29:10.869 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*13*00##`
2023-03-10 15:29:10.869 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's local offset is set to 0°C.
2023-03-10 15:29:10.934 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*1*1*07##`
2023-03-10 15:29:10.934 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Switch 07 is switched on.
2023-03-10 15:29:10.937 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*26##` was successfully sent.
2023-03-10 15:29:10.961 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*27##` received response `*#4*83*13*00##`.
2023-03-10 15:29:11.001 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*27##` was successfully sent.
2023-03-10 15:29:11.610 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*0*0205##`
2023-03-10 15:29:11.610 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's main sensor is reporting a temperature of 20.5°C.
2023-03-10 15:29:11.626 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*14*0190*3##`
2023-03-10 15:29:11.626 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's target temperature is set to 19.0°C.
2023-03-10 15:29:11.627 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*35##` received response `*#4*84*0*0205##`.
2023-03-10 15:29:11.871 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*12*0190*3##`
2023-03-10 15:29:11.871 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's local target temperature is set to 19.0°C.
2023-03-10 15:29:11.873 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*1*84##`
2023-03-10 15:29:11.873 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's mode is set to 'heat'.
2023-03-10 15:29:11.876 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#1*36##` received response `*#4*84*12*0190*3##`.
2023-03-10 15:29:12.149 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*14*0190*3##`
2023-03-10 15:29:12.149 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's target temperature is set to 19.0°C.
2023-03-10 15:29:12.166 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#18*53*51##` received response `*#4*84*14*0190*3##`.
2023-03-10 15:29:12.258 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*13*00##`
2023-03-10 15:29:12.259 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's local offset is set to 0°C.
2023-03-10 15:29:12.316 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*1*1*09##`
2023-03-10 15:29:12.317 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Switch 09 is switched on.
2023-03-10 15:29:12.323 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#18*54*51##` was successfully sent.
2023-03-10 15:29:12.809 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#18*54*113*178##`
2023-03-10 15:29:12.809 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Sensor 4 is reporting an active power draw of 178 W.
2023-03-10 15:32:49.148 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#4*#0#81*#14*0185*3##` was successfully queued.
2023-03-10 15:32:49.260 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message `*#4*#0#81*#14*0185*3##` was successfully sent.
2023-03-10 15:32:49.385 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*110#0185*#0#81##`
2023-03-10 15:32:49.401 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*21*#0#81##`
2023-03-10 15:32:49.893 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*81*13*00##`
2023-03-10 15:32:50.920 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*81*0*0208##`
2023-03-10 15:32:51.509 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*0*0207##`
2023-03-10 15:32:51.510 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's main sensor is reporting a temperature of 20.7°C.
2023-03-10 15:32:51.551 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*12*0175*3##`
2023-03-10 15:32:51.551 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's local target temperature is set to 17.5°C.
2023-03-10 15:32:51.575 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*1*82##`
2023-03-10 15:32:51.575 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's mode is set to 'heat'.
2023-03-10 15:32:52.001 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*81*14*0185*3##`
2023-03-10 15:32:52.072 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*82*14*0185*3##`
2023-03-10 15:32:52.072 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 82's target temperature is set to 18.5°C.
2023-03-10 15:32:52.514 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*81#1*20*0##`
2023-03-10 15:32:53.045 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*0*0203##`
2023-03-10 15:32:53.045 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's main sensor is reporting a temperature of 20.3°C.
2023-03-10 15:32:53.103 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*12*0185*3##`
2023-03-10 15:32:53.103 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's local target temperature is set to 18.5°C.
2023-03-10 15:32:53.126 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*1*83##`
2023-03-10 15:32:53.127 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's mode is set to 'heat'.
2023-03-10 15:32:53.366 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*83*14*0185*3##`
2023-03-10 15:32:53.366 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 83's target temperature is set to 18.5°C.
2023-03-10 15:32:53.564 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*0*0205##`
2023-03-10 15:32:53.564 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's main sensor is reporting a temperature of 20.5°C.
2023-03-10 15:32:53.646 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*12*0185*3##`
2023-03-10 15:32:53.646 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's local target temperature is set to 18.5°C.
2023-03-10 15:32:53.650 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*4*1*84##`
2023-03-10 15:32:53.651 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's mode is set to 'heat'.
2023-03-10 15:32:53.836 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84*14*0185*3##`
2023-03-10 15:32:53.837 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's target temperature is set to 18.5°C.
2023-03-10 15:32:55.543 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#18*55*113*83##`
2023-03-10 15:32:55.543 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Sensor 5 is reporting an active power draw of 83 W.
2023-03-10 15:32:57.725 DEBUG (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Message received: `*#4*84#1*20*0##`
2023-03-10 15:32:57.725 INFO (MainThread) [custom_components.myhome] [F454 gateway - 192.168.1.35] Zone 84's actuator 1 is off.

When you say don’t see it, you mean the device is not created at all?

Let’s say the device is created but it is not possible to display the set point temperature and the measured temperature.

I don’t have anything to test with so it’s a bit hard to be sure, but I think I’ve found the issue.
Can you test the current master version?

Of course!I update you.

I downloaded the new master version and the problem persists. I noticed that now when I move the temperature cursor it no longer changes the set point to the other sensors. In the previous version, even if the control unit did not allow the temperature to be displayed, it was possible to control the thermoregulation (on, off and set point change). I attach a screen.

Since I was seeing strange behavior on other entities, I stopped homeassistant and restarted it. Now I can confirm that everything works great! Thermoregulation too! Great Julien!:muscle::muscle:

1 Like

Hi, I have a problem after updating Myhome to the latest version. I managed to configure everything by adding myhome.yaml file and it works fine.
I only have shutters configured using an MH201 gateway
After a few minutes, however, it stops working, if I press any command I don’t get any results.

If I try to reload the integration it doesn’t work and I get the attached error. Even if I restart HA it doesn’t work, I have to restart the entire VM hosting everything to get everything to start again, for after a few minutes it freezes again.

Can anyone help me ?

Questo errore ha avuto origine da un'integrazione personalizzata.

Logger: homeassistant.config_entries
Source: custom_components/myhome/__init__.py:71
Integration: MyHome (documentation, issues)
First occurred: 18:55:40 (1 occurrences)
Last logged: 18:55:40

Error setting up entry MH201 Gateway for myhome
Traceback (most recent call last):
  File "/config/custom_components/myhome/__init__.py", line 69, in async_setup_entry
    tests_results = await hass.data[DOMAIN][entry.data[CONF_MAC]][CONF_ENTITY].test()
  File "/config/custom_components/myhome/gateway.py", line 130, in test
    return await OWNSession(gateway=self.gateway, logger=LOGGER).test_connection()
  File "/usr/local/lib/python3.10/site-packages/OWNd/connection.py", line 240, in test_connection
    ) = await asyncio.open_connection(
  File "/usr/local/lib/python3.10/asyncio/streams.py", line 48, in open_connection
    transport, _ = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 110] Connect call failed ('192.168.0.253', 20000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/myhome/__init__.py", line 71, in async_setup_entry
    _gateway_handler = hass.data[DOMAIN].pop(CONF_GATEWAY)
KeyError: 'gateway'

The error is saying that there is a timeout while connecting to the gateway.
So, your gateway is not answering.

Yes, that’s the error message, but it’s been happening since the last update and it recovers after restarting the machine, I don’t do anything on the gateway, it seems strange to me.
I have the feeling that instead a service goes down on the machine hosting Home assistant.
I haven’t installed OWNd, I don’t know if this is a prerequisite.
Thank you

OWNd is installed automatically with the integration, it’s not something you need to do anything about.
The new integration did not change anything in the way it “talks” to the gateways.
The problem is likely coincidental, and is either a problem on the gateway itself or on the network path to the gateway, in my opinion.
In any case, I cannot tell you more than what the error message says: timeout, the gateway is not answering.

1 Like

Hi @anotherjulien,

Your work is very great and appreciate.
But I meet a little trouble.
I have a garden gate connected with a F454. To open or close my house gate I have a pushbutton or a remote.
When I configure it like a switch it doesn’t work correctly.
Do you how can I configure it?

thank you in advance for your help and sorry for my English… I am French.

Jérémy

Hi Jérémy, do you know what device you use for that and especially what kind of message is sent when you use it?

Unfortunately I keep having the same problem: sometimes I get timeout error from the integration and it works again only if I restart the virtual machine, it’s not enough to restart home assistant.

I turned on debug and below the logs

Now I’ve activated a script that reload MyHome integration every 30 minutes… check the results.

THIS IS OK
2023-03-14 13:07:51.425 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*0*31##` was successfully queued.
2023-03-14 13:07:51.442 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Command session connection reset, retrying...
2023-03-14 13:07:51.447 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Opening command session.
2023-03-14 13:07:51.464 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Negotiating command session.
2023-03-14 13:07:51.474 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Received nonce: `*#476789811##`
2023-03-14 13:07:51.475 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Sending command session password.
2023-03-14 13:07:51.483 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Command session established.
2023-03-14 13:07:51.523 INFO (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*0*31##` was successfully sent.

PRESS BUTTON ALL SHUTTERS DOWN
2023-03-14 13:20:40.697 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*31##` was successfully queued.
2023-03-14 13:20:40.697 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*43##` was successfully queued.
2023-03-14 13:20:40.697 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*42##` was successfully queued.
2023-03-14 13:20:40.698 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*41##` was successfully queued.
2023-03-14 13:20:40.698 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*11##` was successfully queued.
2023-03-14 13:20:40.698 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*12##` was successfully queued.
2023-03-14 13:20:40.698 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*21##` was successfully queued.
2023-03-14 13:20:40.699 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*23##` was successfully queued.
2023-03-14 13:20:40.699 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*22##` was successfully queued.
2023-03-14 13:20:40.699 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*32##` was successfully queued.
2023-03-14 13:20:40.720 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Command session connection reset, retrying...
2023-03-14 13:20:40.721 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Opening command session.
2023-03-14 13:20:40.749 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Command session connection reset, retrying...
2023-03-14 13:20:40.749 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Opening command session.
2023-03-14 13:20:40.781 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Command session connection reset, retrying...
2023-03-14 13:20:40.783 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Opening command session.
2023-03-14 13:20:40.796 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Command session connection reset, retrying...
2023-03-14 13:20:40.797 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Opening command session.
2023-03-14 13:20:40.813 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Command session connection reset, retrying...
2023-03-14 13:20:40.813 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Opening command session.
2023-03-14 13:20:43.625 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*31##` was successfully queued.
2023-03-14 13:20:43.625 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*43##` was successfully queued.
2023-03-14 13:20:43.625 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*42##` was successfully queued.
2023-03-14 13:20:43.625 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*41##` was successfully queued.
2023-03-14 13:20:43.626 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*11##` was successfully queued.
2023-03-14 13:20:43.626 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*12##` was successfully queued.
2023-03-14 13:20:43.626 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*21##` was successfully queued.
2023-03-14 13:20:43.627 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*23##` was successfully queued.
2023-03-14 13:20:43.627 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*22##` was successfully queued.
2023-03-14 13:20:43.627 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*32##` was successfully queued.
2023-03-14 13:20:44.724 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*11##` was successfully queued.
2023-03-14 13:20:44.725 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*12##` was successfully queued.
2023-03-14 13:20:44.725 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*21##` was successfully queued.
2023-03-14 13:20:44.725 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*23##` was successfully queued.
2023-03-14 13:20:44.726 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*22##` was successfully queued.
2023-03-14 13:20:45.627 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*31##` was successfully queued.
2023-03-14 13:20:45.628 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*43##` was successfully queued.
2023-03-14 13:20:45.628 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*42##` was successfully queued.
2023-03-14 13:20:45.629 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*41##` was successfully queued.
2023-03-14 13:20:45.629 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*32##` was successfully queued.
2023-03-14 13:21:10.499 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*31##` was successfully queued.
2023-03-14 13:44:05.233 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 332, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message='Pause on PRI/Upgrade'
2023-03-14 13:50:28.735 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*2*31##` was successfully queued.
2023-03-14 13:50:29.971 DEBUG (MainThread) [custom_components.myhome] [MH201 gateway - 192.168.0.253] Message `*2*0*31##` was successfully queued.

Well, as far as I can tell, your gateway does not support receiving a lot of messages.
There’s nothing I can really do about it, unfortunately.

Hi Julien,
sorry for the delay in the answer.

The device - i assume - generating all this message is an old load-control Bticino F421.
Basically, it has 8 output to control different F412 NormallyClosed Relays.

Do you know if there is an equivalent component? Maybe something new, always SCS Compatible and working with your integration.

For 3480 binary sensors instead: yes, they are part of the alarm system, configured as technical alarm. I would like to have them in HA if i can read the status from the bus.
Thank you in advance.
Andrea

I tried to configure 2 MH201 on my home assistant. I understood that with the new integration (from 0.9) something is supported regarding multiple gateway, but I had no look.
Is there maybe any particular configuration to be done?
I entered 2 mh201 Mac address in myhome.yaml, but after home assistant restart, both mh201 were not working (even the 1st one).

Thanks
Bye
Marco

Do you have both gateways added in the integration page?
Can you post extracts of your config? and logs as well?

well, it is quite strange.
as soon as i add the 2nd mh201 in the myhome.yaml as per below configuration and i restart, the 1st mh201 stopped working.
Then if i try to add the 2nd MH201 it setup fine, while the 1st one is still not working with the following error in the log

This error originated from a custom integration.

Logger: custom_components.myhome
Source: custom_components/myhome/config_flow.py:231
Integration: MyHome (documentation, issues)
First occurred: 22:00:48 (1 occurrences)
Last logged: 22:00:48

[MH201 gateway - 192.168.1.27] Connection requires a password but none was provided for test session.

myhome.cfg configuration (i tried also adding mh201: before the second instance but it seems same

mh201:
  mac: '00:03:xx:xx:xx:28'
  cover:
    general_shutter:
      where: '1'
      name: Generale
      advanced: False
      manufacturer: Bticino
      model: 4672
    living_shutter:
      where: '11'
      name: Sala piccola
      advanced: False
      manufacturer: Bticino
      model: 4672
    living_shutter_2:
      where: '12'
      name: Sala grande
      advanced: False
      manufacturer: Bticino
      model: 4672
    kitchen_shutter:
      where: '13'
      name: Cucina
      advanced: False
      manufacturer: Bticino
      model: 4672
    bedroom:
      where: '17'
      name: Camera
      advanced: False
      manufacturer: Bticino
      model: 4672
    bedroom2:
      where: '14'
      name: Cameretta
      advanced: False
      manufacturer: Bticino
      model: 4672
    bathroom2:
      where: '15'
      name: Bagno vasca
      advanced: False
      manufacturer: Bticino
      model: 4672
    bathroom:
      where: '16'
      name: Bagno doccia
      advanced: False
      manufacturer: Bticino
      model: 4672
    studio:
      where: '18'
      name: Studio
      advanced: False
      manufacturer: Bticino
      model: 4672
  mac: '00:03:xx:xx:xx:74'
  cover: 
    davide_general_shutter:
      where: '1'
      name: Generale
      advanced: False
      manufacturer: Bticino
      model: 4672