Bticino Smarther X8000

Thank you Andrea. I run Home Assistant on Qnap NAS in Container environement and docker installed is: https://hub.docker.com/r/homeassistant/armhf-homeassistant.
MQTT broker runs in same Container with this docker: https://hub.docker.com/_/eclipse-mosquitto
So, none HASSIO supervisor is available. Can you tell me how to install your docker without HASSIO, where possible?

Hi Andrea, …I really can’t get this integration working :cold_sweat:, logging it I find that:

File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 369, in parse_node
    raise ParserError("while parsing a %s node" % node, start_mark,
yaml.parser.ParserError: while parsing a block node
expected the node content, but found ']'
  in "config/config.yml", line 3, column 20

it seems to be referring to the first character of my client secret, that starts with ‘]’

Captureconfig

here the complete log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[16:03:29] INFO: Setup config file...
[16:03:32] INFO: Api address: http://xxx.duckdns.org:5588/
Traceback (most recent call last):
  File "bticino.py", line 50, in <module>
    cfg = yaml.safe_load(f)
  File "/usr/lib/python3.8/site-packages/yaml/__init__.py", line 162, in safe_load
    return load(stream, SafeLoader)
  File "/usr/lib/python3.8/site-packages/yaml/__init__.py", line 114, in load
    return loader.get_single_data()
  File "/usr/lib/python3.8/site-packages/yaml/constructor.py", line 41, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 64, in compose_node
    if self.check_event(AliasEvent):
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 451, in parse_block_mapping_value
    return self.parse_block_node_or_indentless_sequence()
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 271, in parse_block_node_or_indentless_sequence
    return self.parse_node(block=True, indentless_sequence=True)
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 369, in parse_node
    raise ParserError("while parsing a %s node" % node, start_mark,
yaml.parser.ParserError: while parsing a block node
expected the node content, but found ']'
  in "config/config.yml", line 3, column 20
Traceback (most recent call last):
  File "mqtt.py", line 5, in <module>
    from bticino import send_thermostat_cmd, load_api_config_arg
  File "/hassio_bticino_smarter/bticino.py", line 50, in <module>
    cfg = yaml.safe_load(f)
  File "/usr/lib/python3.8/site-packages/yaml/__init__.py", line 162, in safe_load
    return load(stream, SafeLoader)
  File "/usr/lib/python3.8/site-packages/yaml/__init__.py", line 114, in load
    return loader.get_single_data()
  File "/usr/lib/python3.8/site-packages/yaml/constructor.py", line 41, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/lib/python3.8/site-packages/yaml/composer.py", line 64, in compose_node
    if self.check_event(AliasEvent):
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 451, in parse_block_mapping_value
    return self.parse_block_node_or_indentless_sequence()
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 271, in parse_block_node_or_indentless_sequence
    return self.parse_node(block=True, indentless_sequence=True)
  File "/usr/lib/python3.8/site-packages/yaml/parser.py", line 369, in parse_node
    raise ParserError("while parsing a %s node" % node, start_mark,
yaml.parser.ParserError: while parsing a block node
expected the node content, but found ']'
  in "config/config.yml", line 3, column 20
[cmd] /hassio_bticino_smarter/run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

maybe is this the problem? or am I missing something else?
thanks in advance for any help!

Hi Mauro,
first of all you cant use localhost (127.0.0.1) as mqtt broker.
You must use your HA’s ip ex. 192.168.1.X, because this is a loopback of container not your server.
For parser error, please open an issue on github to tack the event:

1 Like

For configuration parsing issue try to update to the last add-on version and then click on rebuild !