Legrand/Bticino MyHome

Have you tried uninstalling the component and doing a fresh install? have noticed that many have not done this and were having problems with the old configuration.

confermo di aver disinstallato il componente in hacs compreso l’integrazione, cancellato il file yaml e rifatto da capo; ciò nonostante al riavvio non carica. per caso esiste una automazione da configurare all’avvio di HA in modo che mi carichi la configurazione? grazie della risposta.

Hi, I get this error when I lock/unlock an actuator (A2 PL5) via mh200n

Questo errore ha avuto origine da un'integrazione personalizzata.

Logger: custom_components.myhome
Source: custom_components/myhome/gateway.py:145
Integration: MyHome (documentation, issues)
First occurred: 07:33:18 (22 occurrences)
Last logged: 16:19:39

[Myhomeserver1 gateway - 192.168.11.153] Data received is not a message: `*14*1*25##`
[Myhomeserver1 gateway - 192.168.11.153] Data received is not a message: `*14*0*25##`

Hi Julien, I updated to 0.9, built the new yaml config, but gateway config cannot be loaded…

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/myhome/__init__.py:51
Integration: MyHome (documentation, issues)
First occurred: 8:04:28 PM (1 occurrences)
Last logged: 8:04:28 PM

Error setting up entry AM4890 Gateway for myhome
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/myhome/__init__.py", line 51, in async_setup_entry
    _validated_config = config_schema(yaml.safe_load(await yaml_file.read()))
  File "/usr/local/lib/python3.10/site-packages/yaml/__init__.py", line 125, in safe_load
    return load(stream, SafeLoader)
  File "/usr/local/lib/python3.10/site-packages/yaml/__init__.py", line 81, in load
    return loader.get_single_data()
  File "/usr/local/lib/python3.10/site-packages/yaml/constructor.py", line 49, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.10/site-packages/yaml/composer.py", line 64, in compose_node
    if self.check_event(AliasEvent):
  File "/usr/local/lib/python3.10/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.10/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value
    if not self.check_token(KeyToken, ValueToken, BlockEndToken):
  File "/usr/local/lib/python3.10/site-packages/yaml/scanner.py", line 116, in check_token
    self.fetch_more_tokens()
  File "/usr/local/lib/python3.10/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens
    raise ScannerError("while scanning for the next token", None,
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
  in "<unicode string>", line 2, column 1:
    	mac: '00:03:50:*xx:xx:xx*'
    ^

I tried to reinstall myhome and it gives me this error

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: 8:18:02 PM (2 occurrences)
Last logged: 8:18:47 PM

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

I correctly wrote the password (12345)

@czaganelli, WHO 14 messages are not entirely parsed by OWNd, you can safely ignore those, I’ll make a note to fix this for the next release

@mantovanelli.matteo, it seems YAML did not like you using tab as an indentation, 2 spaces is more common and apparently what it expects. The warning about the password is probably the test session that is initially used to test if a password is necessary or not. If you’ve correctly put your password, it’s nothing to worry about.

It was so simple… XD

Thanks

Hello, I use the f454 webserver, can someone give me some indications on how to start, what to do as soon as I copy the myhome folder into custom_component, and do I also have to copy the ownd folder? Thank you

Hi everyone, first of all, thanks @anotherjulien for your effort, very appreciated!
I’m finding some logs related to “data received not a message” error.

Could anyone help me to figure out what does it means? (MyHome v0.9.0)

2023-03-07 21:57:21.007 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#8##`
2023-03-07 21:57:46.708 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#1##`
2023-03-07 21:58:12.459 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#2##`
2023-03-07 21:58:38.181 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#3##`
2023-03-07 21:59:03.362 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#4##`
2023-03-07 21:59:28.724 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#5##`
2023-03-07 21:59:53.134 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#6##`
2023-03-07 22:00:18.937 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#7##`
2023-03-07 22:00:44.537 WARNING (MainThread) [custom_components.myhome] [H/L4684 gateway - 192.168.1.7] Data received is not a message: `*3*1*#8##`
.....

In addition to that, i would like to configure also

  • some H20 sensors (Contact interface BTicino 3480, with Mod1=8, Z1=9, N1=2, Mod2=2, Z2=, N2=)
  • Doors sensors (with BTicino 3480 with Mod1=, Z1=2, N1=3).

Do you have any example in your wiki? i’m not sure if they are “dry contacts” or “contacts”.


@Norak, io ho installato HomeAssistant e, successivamente, ho installato HACS tramite SSH (usando il componente aggiuntivo SSH & Web Terminal). Per installarlo, ho trovato un comando su hacs.xyz, che al momento non ritrovo. Di seguito i passi fino alla console SSH:

//<HA_IP>:8123/config/dashboard -> Componenti aggiuntivi -> Raccolta di componenti aggiuntivi (in basso a dx) -> aggiungi SSH & Web Terminal. 
//Post installazione, configura le opzioni di base e accedi mediante link disponibile sulla sidebar a sinistra.

Ometto il comando per installare HACS che al momento non trovo, ma è di facile reperibilità online.

Poi, da HACS, che appare anch’esso post installazione nella sidebar a sinistra, ho installato l’integrazione personalizzata inserendo manualmente il repository personalizzato di anotherjulien. Di seguito i passi:

//HACS -> Integrazioni -> (Tre puntini in alto a destra) -> Aggiungi repository personalizzato -> inserisci link a repo GitHub di anotherjulian/MyHome. 
//NON serve OWNd, viene installato quello che gli serve come requirements in autonomia.

Infine, via SSH ho compilato il file che nel mio caso è situato qui: /config/myhome.yaml come da Wiki presente nel GitHub repo. Spero di essere stato utile.

Grazie infinite per la risposta HA mi trova l 'f454 ma quando vado per configurarlo mi da questo errore

Logger: custom_components.myhome
Source: custom_components/myhome/__init__.py:53
Integration: MyHome (documentation, issues)
First occurred: 08:29:03 (1 occurrences)
Last logged: 08:29:03

Configartion file '/config/myhome.yaml' is not present!

devo crearlo io il file manualmente?

Il file nel mio caso è stato creato all’installazione del custom_component “MyHome”.

Puoi provare a crearlo tu, inserendolo nella forma disponibile qui: https://github.com/anotherjulien/MyHOME/wiki/Sample-config

Dear Julien good evening.
I just downloaded the new update and after creating the configuration file in the /custom_components/myhome/config/myhome.yaml folder I get an error configuring the gateway and I can’t find the cause. I attach the logs. Thank you very much.

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.homeassistant/custom_components/myhome/__init__.py", line 51, in async_setup_entry
    _validated_config = config_schema(yaml.safe_load(await yaml_file.read()))
  File "/home/homeassistant/.homeassistant/custom_components/myhome/validate.py", line 174, in __call__
    data = super().__call__(data)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 387, in validate_mapping
    cval = cvalue(key_path, value)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable
    return schema(data)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 387, in validate_mapping
    cval = cvalue(key_path, value)
  File "/srv/homeassistant/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable
    return schema(data)
  File "/home/homeassistant/.homeassistant/custom_components/myhome/validate.py", line 222, in __call__
    path=[device][CONF_WHO],
TypeError: list indices must be integers or slices, not str

I found the problem… it’s on the binary_sensor…
The configuration is as follows. Strangely with version 0.8.7 it worked great…

  binary_sensor:
    stato_allarme:
      where: '5'
      who: '9'
      name: stato allarme totale
      class: power
      manufacturer: BTicino
      model: L4610
    stato_allarme_notte:
      where: '8'
      who: '9'
      name: stato allarme notte
      class: power
      manufacturer: BTicino
      model: L4610
    motion_ingresso:
      where: '1'
      who: '9'
      name: volumetrico ingresso
      class: motion
      manufacturer: BTicino
      model: L4610
    segreteria_citofonica:
      where: '9'
      who: '9'
      name: segreteria citofonica
      class: power
      manufacturer: BTicino
      model: L4610

@vix0971

config/custom_components/myhome/
config/myhome.yaml 

where config is your Home Assistant configuration directory.

Breaking Changes and post

As written in the readme file on github…

If you’ve been using this integration in version 0.8 and prior, configuration structure has changed and you need to create and populate the appropriate config file. See below for instructions.

Please find the configuration on the project’s wiki!

Advanced uses are also listed in the wiki.

I think I’ve found the problem. In short, because the device class is power it tries to apply config validation that is intended for sensor and not binary_sensor.
In the short term, you can try to change the device class for those, and I’ll work on a more permanent fix for next release. (Alternatively, the current master should work at this point if you want to try)

1 Like

That’s interesting, I had never seen WHO 3 messages :smiley: What are the devices that produce them?
Currently they are not supported by this integration though.
For your 3480 binary sensors, from what I can find, they are part of the alarm system? I have no experience with this but the alarm system is not supported either.

Hello @caiosweet … the problem occurs only if I insert the binary_sensor that I posted in the configuration file… Otherwise everything works fine.

Great Julien!
So can I use the master version without changing the current configuration set up for version 0.9?

:+1:
Sorry, I understood after reading julien’s answer.

1 Like

Yes, the only difference at the moment is this fix!

1 Like