Legrand/Bticino MyHome

@anotherjulien
Thanks for the answer, in HA i saw a warning about that but now with the MASTER version i have a different error:

File "/usr/local/lib/python3.9/site-packages/OWNd/connection.py", line 109, in get_first_available_gateway
    local_gateways[0]["password"] = password
IndexError: list index out of range

it’s something about a password, i don’t know where i can put this password

It’s something about the library not finding the gateway :confused:
I’ve made a slight modification to the master version, could you reinstall it?

@anotherjulien
ok, one step forward :slight_smile:

now I’ve this error:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 74, in _async_process_pending_flows
    await gather_with_concurrency(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 170, in gather_with_concurrency
    return await gather(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 168, in sem_task
    return await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 203, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 230, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/myhome/config_flow.py", line 405, in async_step_ssdp
    await self.async_set_unique_id(device_registry.format_mac(gateway.unique_id))
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 131, in format_mac
    if len(to_test) == 17 and to_test.count(":") == 5:
TypeError: object of type 'NoneType' has no len()

I have never said that i run HASSOS on windows in a virtual machcine, is it a problem?

thanks again

I have no idea how the VM environment will affect SSDP, it mainly depends on the network settings of the VM I suppose.
Here the error suggests that the SSDP discovered gateway had an invalid mac address (or rather, inexistent).
Would you be able to collect debug logs that would show what HA’s discovery mechanism found?

Happy New Year to the whole community!
Hi Julien, congratulations for your integration!

AUX (WHO = 9) commands can also be interpreted as switches or lights.
*9*1*5## is the OWN command to put ON the AUX channel 5 and *9*0*5## is the one to put OFF the AUX channel 5.

In my anti-theft control panel (Myhome 3486) I created automations to enable (AUX5=1) and disable (AUX5=0) the anti-theft device.
How do I create a switch in HomeAssistant to do this?
Thank you

Nobody can help me?

WHO 9 are supposed to be sensors, not switches.
It’s an unfortunate hack that a very few select gateways fail to filter them when you try to send them on the bus.
As such, I do not plan on integrating this at any point.

In theory you can still use the send_message service to send these frames to the gateway if you wish to, I suppose.

WHO 9 are supposed to be sensors, not switches.
It’s an unfortunate hack that a very few select gateways fail to filter them when you try to send them on the bus.
As such, I do not plan on integrating this at any point.

In theory you can still use the send_message service to send these frames to the gateway if you wish to, I suppose.

To send the message I think there are no problems, the problem if anything is to listen on the BUS to see if a certain OWN frame passes.
I’ll try to fix maybe doing automations with MH200N with AUX and CEN commands … Thank you

Sorry again for disturbing…
If the shutter switch is set with configurators(=jumpers) does it means it wont work with @anotherjulien integration ?

(In which case i will have to remove the configurators and include them again by learning the guide how to do it !)

Yes, it still works :slight_smile:
Physical or virtual configuration makes no difference

1 Like

I have no idea how the VM environment will affect SSDP, it mainly depends on the network settings of the VM I suppose.
Here the error suggests that the SSDP discovered gateway had an invalid mac address (or rather, inexistent).
Would you be able to collect debug logs that would show what HA’s discovery mechanism found?

I have the HA log but is too long, i searched only a referement of myhome

2022-01-08 14:49:55 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Received packet from ('192.168.1.25', 55977): b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=500\r\nDATE: Sat, 08 Jan 2022 13:49:54 GMT\r\nEXT:\r\nLOCATION: http://192.168.1.25:49153/\r\nOPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01\r\n01-NLS: 9636d7da-7013-11ec-aff8-a136898f2509\r\nSERVER: Linux/4.9.11-yocto-standard+gd76b848, UPnP/1.0, Portable SDK for UPnP devices/1.6.22\r\nX-User-Agent: redsonic\r\nST: upnp:rootdevice\r\nUSN: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4::upnp:rootdevice\r\n\r\n'
2022-01-08 14:49:55 DEBUG (MainThread) [async_upnp_client.search] Received response, USN: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4::upnp:rootdevice
2022-01-08 14:49:55 DEBUG (MainThread) [async_upnp_client.ssdp_listener] See new device: <SsdpDevice(uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4)>
2022-01-08 14:49:55 DEBUG (MainThread) [homeassistant.components.ssdp] SSDP: ssdp_device: <SsdpDevice(uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4)>, dst: upnp:rootdevice, source: SsdpSource.SEARCH_CHANGED
2022-01-08 14:49:55 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Received packet from ('192.168.1.25', 55977): b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=500\r\nDATE: Sat, 08 Jan 2022 13:49:54 GMT\r\nEXT:\r\nLOCATION: http://192.168.1.25:49153/\r\nOPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01\r\n01-NLS: 9636d7da-7013-11ec-aff8-a136898f2509\r\nSERVER: Linux/4.9.11-yocto-standard+gd76b848, UPnP/1.0, Portable SDK for UPnP devices/1.6.22\r\nX-User-Agent: redsonic\r\nST: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4\r\nUSN: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4\r\n\r\n'
2022-01-08 14:49:55 DEBUG (MainThread) [async_upnp_client.search] Received response, USN: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4
2022-01-08 14:49:55 DEBUG (MainThread) [async_upnp_client.ssdp_listener] See new service: <SsdpDevice(uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4)>, type: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4
2022-01-08 14:49:55 DEBUG (MainThread) [homeassistant.components.ssdp] SSDP: ssdp_device: <SsdpDevice(uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4)>, dst: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4, source: SsdpSource.SEARCH_CHANGED
2022-01-08 14:49:56 DEBUG (MainThread) [async_upnp_client.search] Received response, USN: uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4::urn:schemas-bticino-it:device:myhomeserver1:1
2022-01-08 14:52:54 DEBUG (MainThread) [homeassistant.components.ssdp] SSDP: ssdp_device: <SsdpDevice(uuid:pnp-myhomeserver1-2_41-00:03:50:86:69:B4)>, dst: urn:schemas-bticino-it:service:keyobjects:1, source: SsdpSource.SEARCH_ALIVE

:confused: I’ll need to try to reproduce the issue on my end I think
I don’t suppose the integration lets you try to add a custom gateway either then, correct?

Alright, current master should actually fix the SSDP discovery problem.
Also fixes the custom icons and area assignment disappearing after restart.
Also allows the supported entities to change device_class using the new “Show as” system.

Hi,
i tried the new master version but doesn’t work. At this point I’ve ordered a raspberry and then I’ll try your addon. I’m sure will works!!!

Anyway, thank you so much for the support :slight_smile:

Does it produce the same error? Or something else?
Did you reinstall through HACS?

Finally now it works!!!
First i installed trought HACS e didn’t work, then I’ve installed manually and finally i can configure the gateway now.

Thank you so much!! you are a fu…ng genius :slight_smile:

2 Likes

hopefully you can still use your incoming RaspberryPi for something else :slight_smile:

1 Like

Aloha, yes @anotherjulien is curious. I wonder what is life is because yes he is damn impressive !
I am here again facing my ignorance and disturbing the great community with my questions…

I finally managed to add some lights and shutters and here are my questions :innocent:

1/ i only managed to make shutters (H4661M2) work with a custom shutter-card, this one below in picture.
and only swiping down or up the shutter works. Clicking on up or down doesnt work.
Any reason, i am doing things wrong ?

image
image

2/ For some reason some lights don t work though they are configured like the others.
I am not sure how to help you help me…
I am using the APL of 067552 Commande Céliane 1 ou 2 fonctions pour lumière ou volets MyHOME_Up - Espace Pro | Legrand
All is formated ok i think…

:question:
:pray:

Hi Julien,

i am receiving every 10 minutes a warning in the logfile, do you or how can determine what is creating this message ?
Thanks

2022-01-11 15:52:31 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration myhome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-11 15:52:31 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-11 15:52:31 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration blueiris which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-11 15:52:31 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration esxi_stats which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-11 15:52:31 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration google_home which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-11 16:00:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2022-01-11 16:10:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2022-01-11 16:20:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2022-01-11 16:30:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2022-01-11 16:40:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2022-01-11 16:50:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2022-01-11 17:00:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None

@dirk291, the warning just means something was received on the bus that could not be interpreted as a message. You can ignore it overall.
But if you are willing, (and since it is very regular and easily reproducible), you can use an OpenWebNet client to try to find exactly what it is that is received every 10 minutes on the spot. I’d be very interested in knowing!

@supertabouret, I’m not sure what’s going on, and furthermore, I have no idea what this custom card does!
Can you please provide the debug logs for the integration while trying something that works and something that does not?

@anotherjulien
The more am worried with are the lights

I am not sure if these are the logs