Legrand/Bticino MyHome

Hello All,
I finally succeeded in adding the gateway F454.
Now trying to add devices and have 2 questions :

1/ where is the OpenWebNet address of your device (the ‘APL’).
Where to find the APL ? In the MyHomeSuite software?

2/ One i edit my configuration.yaml file like let s say i want to put a light in the HA panel :

light:

  • platform: myhome
    devices:
    garage:
    where: ‘01’
    name: Garage
    dimmable: False
    manufacturer: Arnould
    model: 64391

image

How do i make it show there ?
Because light is not showing as en entity ?

No one ? :sob:

Hello supertabouret
In MyHome Suite you have multiple devices.
Some of those device is Actuator (light, blinds), some of those are “Actuator Command”.
actuators are devices that perform actions (close/open the contact of the relays) the actuator commands are devices that give command to the actuator.
Each actuator has an address A=Ambient PL=Point Light; one or more actuator controls have the same address (precisely because it must control that particular actuator) [they also have the control mode: ON/OFF for light or UP/DOWN if they are shutters]

You should focus on the actuators (they are usually located in electrical panels). In the example you sent the model 64391 is an actuator command.

If the system is recent, the configuration was almost certainly carried out through Myhome Suite [virtual configuration] otherwise it was done by means of jumpers (they are like green fuses with numbers) [physical configuration]. To check you should check if there are such “fuses” on the devices.

If you ask these questions it means that you did not design the electrical system you have two options:

  1. ask the technician who made the configuration so that he gives you for each actuator the relative address (for example garage light A = 3 PL = 5)
  2. Scan the devices on the BUS with Myhome Suite. Each MyHOME device has a unique printed ID, through that ID you can create a spreadsheet in which:
  • Identify the actuator (by ID)
  • Identify functions on that actuactor
  • with MyHome Suite you can see its address A,PL

For example F411/2 has:
ID = xxxxxxxx
Light Garage = A=3, PL=5
Light Aisle = A=3, PL=7

Attention that there are actuators (for example F411/2 that inside I can control 2 light points) so it is not said that 1 actuator (F411/2) corresponds to a function (garage light ignition).
I hope I have clarified your ideas.
Have fun

1 Like

Wow impressive and so useful details thank you so much.
I will try and let all know.
I still have a very last question. Let s say i find the actuator and it s adress.
I go in configuration.yaml to put it like it s written in the github help :

light:
platform: myhome
devices:
garage:
where: ‘35’
name: Garage
dimmable: False

But then how can i create a button in the dashboard to on or off ?

I switched in yaml and i have this, it s not showing on dashboard

To find table of addresses of devices connected to MyHomeServer you can navigate to:

https://ip_myhomeserver1:3443

password is Installer Code

if you create for example (into configuration.yaml)

- platform: myhome
  devices:
    garage:
      where: "35"
      name: Garage Light
      dimmable: False
      manufacturer: BTicino
      model: F411U2

This is converted to Entity light.garage; in you dashboard you can add a “Light Card” see below:

1 Like


is giving


sameproblem when putting it in configuration.yaml

@supertabouret, when you add the configuration to configuration.yaml (and restart Home Assistant), it is normal that the entity does not appear automatically in the Lovelace UI, but does it appear in the list of entities?
You can find them in “Outils de développement” on the left sidebar, then the “États” tab on top.

1 Like

I advise you to do so:
In configuration.yaml put:

..
# Domotics MyHome
light: !include myhome_light.yaml
...

in myhome_light.yaml put:

- platform: myhome
  devices:
    garage:
      where: "35"
      name: Garage Light
      dimmable: False
      manufacturer: BTicino
      model: F411U2
  1. Check Config
  2. If OK Restart (See below)

After Reboot, if all is OK you see light.garage into Entities (Configuration - > Device & Services → Entities)

2 Likes

@gabriele.daltoe and @anotherjulien
All solved now !
I did the Gabriele solution and it worked at once…awsome.
Thank you so much, you made my day !

Well done! :+1:

1 Like

no one can help me? :cry:

@mantovanelli.matteo
Sorry i cannot as i dont understand much yet. You could also check on the openhab forum that is very active too and where you can find many informations too.

Hello again to any good heart who would help for the last challenge of mine,

I managed to make a light work ! And i had the state feedback working good.
I discovered, and this may help many others so i am sharing, that about the APL,
if the A is 1 and PL is 11 you have to put 0111 so that it works.

Now my problem is with the shutters
I declared my shutter in configuration.yaml fine
cover:

  • platform: myhome
    devices:
    garageshutter:
    where: “95”
    name: Garage Shutter
    advanced: False

I found the A PL here

I can see the entity in HA but it is not working.

1/ Should i put where: “95” or where: “0905” or where: “095” … ?

2/ Is there another reason why the roller shutter is not working via HA ?
maybe because it s declared virtually or with jumpers?
If i can see it in myhome suite is it mandatory that it should work with @anotherjulien myhome ?

Really hope someone can help for that last thing as i only have lights and shutters…
Thank you so so so much…

Hello to everyone!
I’m trying to connect myhomeserver1 through the addon (version 0.8.5) but i can’t because I get the error: All MyHome gateways are already configured.
When i restart home assistant i have 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 402, in async_step_ssdp
    discovery_info["port"] = None
TypeError: 'SsdpServiceInfo' object does not support item assignment

How can i resolve?

Thanks

@Dexnus
1/ in this thread you will find users who had similar problems and they found solution, you should find it also.
2/ if not, i had problems too. I had to install not 0.85 but master version first. please try it

@supertabouret
thanks for the answer, I removed the 0.8.5 and installed the master version. But i have this error now:

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 404, in async_step_ssdp
    gateway = await OWNGateway.build_from_discovery_info(discovery_info.ssdp_headers)
  File "/usr/local/lib/python3.9/site-packages/OWNd/connection.py", line 140, in build_from_discovery_info
    return await cls.get_first_available_gateway(
  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 a password, right? i don’t know where i can put this password

@Dexnus, SSDP handling changed in HA recently, somebody (xtimmy86x) kindly provided the needed fix on the github repo but there hasn’t been a published release including it yet, so you can install the master version for now.

@supertabouret, yes covers (advanced or not) work as well, the address should be 95 in your case (4 digit address are needed if either A or PL is itself 2 digits to avoid confusion, ie. is 111 supposed to be A=1 PL=11 or A=11 PL=1?)
It’s probably easier for you to reproduce what you’ve done with the lights (create them in a separate file and import it in configuration.yaml), hopefully it’ll work that way.

@mantovanelli.matteo, the logs you provided do not show any incoming message with power values, are you sure there are any? Did you create an automation to ask the sensor to send the value for x minutes? Is it still running fine?