New platform for My Home bTicino

Forgive me, but I use the translator.
I have imposed the IP in the range for access permissions.
I tried not to put the password, but it is a mandatory option, the component does not accept the parameter without password …
Very kind, I would like to send the log in a clear and detailed, I promise to do it this weekend calmly.
I installed the new version of hassio, I have to check even if everything remained usable. The Deps folder is intently still there!
For now, thank you very much.

Sorrry sorry and sorry for google translate: D

Perdonatemi, ma uso il traduttore.
Si ho imposto li’IP nel range per i permessi di accesso.
Ho provato a non mettere la password, ma è un opzione obbligatoria, il componente non accetta il parametro senza password…
Molto gentile, vorrei inviare il log in maniera chiara e dettagliata, prometto di farlo questo fine settimana con calma.
Ho installato la nuova versione di hassio, devo controllare anche se tutto è rimasto fruibile. Intanto la cartella Deps c’è ancora!
Per ora grazie mille.

Sorrry sorry and sorry for google translate :smiley:

Ciao Caiosweet :grinning:
try removing the IP from range of authorized access.
In this way it must ask at the beginning the password.

It works like a charm!

I’m really stupid!
I’ll do the test anyway and post the log file.
I have to understand how to do the installation for Hass.io, the add-on, and it’s perfect!

Hola clau67, the lights go!
Now the problem is the sensors.
I have a central 99 zones with 4 + 1 zones set.
from your guide
“value you set with 2 jumpers on the probe or central unit wall es 11, 12 …”
But I have the following “addresses” as zones
Camera zona 1
Studio zona 2
Bagno zona 3
Salone zona 4
Quadro elettric

This is part of the Hass.io log and the MH200N monitor where the request is executed.
Thank you for your patience.

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.async_device_update()
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/sensor/my_home.py", line 95, in update
    self._state=self._gate.answ_read_temperature(self._indirizzo)
  File "/config/deps/lib/python3.6/site-packages/OpenWebNet.py", line 455, in answ_read_temperature
    valore = float(self.stato_answer('4',where,'0'))/10
  File "/config/deps/lib/python3.6/site-packages/OpenWebNet.py", line 409, in stato_answer
    return self.sensor_risposta[where]
KeyError: '2'

Thu May 31 2018 18:03:37 GMT+0200 (ora legale Europa occidentale)

Update for sensor.temp_quadro fails
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.async_device_update()
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/sensor/my_home.py", line 95, in update
    self._state=self._gate.answ_read_temperature(self._indirizzo)
  File "/config/deps/lib/python3.6/site-packages/OpenWebNet.py", line 455, in answ_read_temperature
    valore = float(self.stato_answer('4',where,'0'))/10
  File "/config/deps/lib/python3.6/site-packages/OpenWebNet.py", line 409, in stato_answer
    return self.sensor_risposta[where]
KeyError: '105'

Thu May 31 2018 18:03:37 GMT+0200 (ora legale Europa occidentale)

Update for sensor.temp_camera fails
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.async_device_update()
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/sensor/my_home.py", line 95, in update
    self._state=self._gate.answ_read_temperature(self._indirizzo)
  File "/config/deps/lib/python3.6/site-packages/OpenWebNet.py", line 455, in answ_read_temperature
    valore = float(self.stato_answer('4',where,'0'))/10
  File "/config/deps/lib/python3.6/site-packages/OpenWebNet.py", line 409, in stato_answer
    return self.sensor_risposta[where]
KeyError: '1'

###########################################################################
Socket MONITOR 

31/05/2018  18:03:03:580    Mon: *1*0*11##
31/05/2018  18:03:03:968    Mon: *1*0*31##
31/05/2018  18:03:07:676    Mon: *#4*105*0*0296##
31/05/2018  18:03:07:814    Mon: *#4*1*0*0262##
31/05/2018  18:03:07:927    Mon: *#4*2*0*0265##
31/05/2018  18:03:14:454    Mon: *1*0*31##
31/05/2018  18:03:14:517    Mon: *1*0*11##
31/05/2018  18:03:17:041    Mon: *#13**22*18*01*32*001*04*31*05*2018##
31/05/2018  18:03:25:435    Mon: *1*0*11##
31/05/2018  18:03:25:518    Mon: *1*0*31##
31/05/2018  18:03:36:427    Mon: *1*0*11##
31/05/2018  18:03:36:521    Mon: *1*0*31##
31/05/2018  18:03:38:648    Mon: *#4*2*0*0265##
31/05/2018  18:03:38:843    Mon: *#4*105*0*0296##
31/05/2018  18:03:39:026    Mon: *#4*1*0*0262##
31/05/2018  18:03:47:102    Mon: *#13**22*18*02*02*001*04*31*05*2018##
31/05/2018  18:03:47:430    Mon: *1*0*11##
31/05/2018  18:03:47:524    Mon: *1*0*31##

This is my config

sensor:
# NYHOME SENSOR
  - platform: my_home
    devices:
      - name: 'Temp camera'
        indirizzo: '1'

  - platform: my_home
    devices:
      - name: 'Temp Studio'
        indirizzo: '2'

  - platform: my_home
    devices:
      - name: 'Temp Quadro'
        indirizzo: '105

Hi caiosweet,
I understand your problems.
When I read the data from the bus I check if the address in the answer is the same of the address in config and then write the value of T in a dictionary. But I used ever two number for the address file 11, 12 and so on , but you have only one digit 1, 2 or 3 or in one case 3 digit 105, so the OpenWebNet class is not able to read in correct way.
I have to do an update of the Class.:face_with_raised_eyebrow:

1 Like

Hi Caiosweet,
I have updated the OpenWebNet.py on PYpi, now it must function also for sensor.
You have to disinstall the OpenWebNet from you system, on hassbian
pip3 uninstall OpenWebNet
then install the new version
pip3 install OpenWebNet==1.3.0
edit the my_home.py under custom_components, and change the line 21
REQUIREMENT = [OpenWebNet==1.2.9] with
REQUIREMENT = [OpenWebNet==1.3.0]
and test it.
When HA start need some seconds before update the sensor with the correct value.

1 Like

First of all, thank you.
I tried the new code, but unfortunately without changes.
To make sure the new code is installed, I report the error lines

409 return self.sensor_risposta[where]
462 valore = float(self.stato_answer(‘4’,where,‘0’))/10

Update for sensor.temp_camera fails
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 204, in async_update_ha_state
yield from self.async_device_update()
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 327, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/sensor/my_home.py”, line 95, in update
self._state=self._gate.answ_read_temperature(self._indirizzo)
File “/config/deps/lib/python3.6/site-packages/OpenWebNet.py”, line 462, in answ_read_temperature
valore = float(self.stato_answer(‘4’,where,‘0’))/10
File “/config/deps/lib/python3.6/site-packages/OpenWebNet.py”, line 409, in stato_answer
return self.sensor_risposta[where]
KeyError: '1

I am aware that you are not a developer, and I thank you for the effort, I hope others will give us a hand.

CaioSweet

You are right CaioSweet, I’m not a developer :grinning:

I’m sorry but I was sure that this new version it would work for you too.

Also I hope someone want to develop this platform.

:+1:

Hi @sxpert

I downloaded your GitHub prj (thanks for sharing BTW), but I don’t understand where to save it in homeassistant.
I’m running in a Freenas jail the std version of HA.
Does it go into custom_components ?

Thanks

Hi all,

Have you heard about BTicino Living now solution?

Zigbee smart switches that can be mounted on traditional electric system (only neutral required).

Do you think that will be possible to make it compatible with HA?

I’m too interested. I just found out about this and I’m bitting off my nails already!!! It looks like those new switches still need the gateway right?

Yes, a zigbee gateway to put in a normal switch hole.

Have you got any far with this? I’m reading up online but I’m not sure how this system is intended to work. I need to continue investing time I guess.

now the system in available for order. I think that in a few weeks it will be avavilable. I’m very interested to this new plaform

Hi, first of all thank you so much for all ur efforts!

I have a question if I may: has anyone done something to integrate the Bticino video doorphone model “300X13E” into Home Assistant? I know it should be compatible with the “My Home” system and gateway…

Many thanks in advance to anyone who could help me!

2 Likes

Hi Claus67,

Are there any new development coming?
i can’t any component for Bticino SCS.

Thank you

Hi jpcolin,
I’m not developing any new component for Bticino. The components light and temperature in my system are still functioning after all the HA update, so for the moment I’ m integrating in HA a lot of other components like MQTT, Modebus, MHT22, the alarm system and so on. Programming is a sort of hobby for me. I’ve studied Phyton for less than one month to develop this component, and I know that is possible to do in a better way, but I need a lot of time to study and understand HA structure, phyton advanced programming, asynchronous routine, etc… that I don’t have. I hope someone more able then me can take this starting point and integrate definitely in HA or give me a lot of suggestion on how to do it.

Thank

Hi claud67,
i’m new, installed hassbian tonight.

I have read all the posts but I can not figure out how to install in hassbian.
With Putty I launched the command:

pi @ hassbian: ~ $ pip3 install OpenWebNet == 1.3.0
Collecting OpenWebNet == 1.3.0
Downloading https://www.piwheels.org/simple/openwebnet/OpenWebNet-1.3.0-py3-none-any.whl
Installing collected packages: OpenWebNet
Successfully installed OpenWebNet-1.3.0

Now what should I check? Excuse my ingenuity.

Hi val73,
if you have installed the OpenWebNet, now you have to download the CUSTOM_COMPONENTS from the link I posted the 6 April, and follow the readme instruction to configure the configuration.yaml.
If you have a bTicino gateway that don’t ask you the password, please remove the IP address of your home assistant server from the list of authorized device.
The OpenWebNet I have developed need the password to connect with the bus.

Hi clau67, home assistant controls myhome feedback too slowly

1 Like