Openhab-addons: Add Comelit Binding

Created on 6 Nov 2018  路  31Comments  路  Source: openhab/openhab-addons

Hello,
I want to contribute to support Comelit devices (lights, blinds, clima) https://www.comelitgroup.com/en-gb/smart-home-case-study-comelits-simplehome-is-installed-at-assisted-living-complex/

Regards
kottle

new binding

Most helpful comment

Yes I did.
I'm able to control Comelit devices like lights, blinds and read ambient temperature, power..
If you need some hints contacts me

All 31 comments

Do you have something already?
Let's talk, I'm also working on something comelit-based.

Yes I did.
I'm able to control Comelit devices like lights, blinds and read ambient temperature, power..
If you need some hints contacts me

@kottle is it possible to get some information (some code). I'd like to support comelit devices (doorbell) in iobroker.

Yes I did.
I'm able to control Comelit devices like lights, blinds and read ambient temperature, power..
If you need some hints contacts me

Yes I did.
I'm able to control Comelit devices like lights, blinds and read ambient temperature, power..
If you need some hints contacts me

Hello @kottle , can you send me some hints on how you control comelit simplehome lights on openhab? (binding) thanks a lot

I'm still interested (sorry, for some reason I missed the notification back in november), do you already have your code on a fork/branch here on github?
I'm available to help in preparing a PR for this repo, if you need it.

I'm also interested. Anyone know what kind of API or protocol is used on Comelit devices?

would be very interesting to control Comelit Simplehome on Home Assistant as well :) ... anyone knows something? Desperately trying to find a solution... but I am not very good at coding and fairly new to this :(

@Brmm I fear the protocol is proprietary, but I managed to have some specs by sniffing the serial/ethernet and by disassembling the tools coming from Comelit. I have some of their basic libraries, stripped of proprietary licenses (DevXPress), working on my machine.
Note that this is perfectly legal in Italy: the law allows you to reverse engineer something to work WITH it, but not to replace anything provided by the same company - in this case, there's no management tool similar to OpenHab available from Comelit (as of a couple of years ago - I have to investigate more on this now).
Nonetheless, if we want to have an official "blessing" from Comelit, I can also try helping: with my previous company I have worked for them (on other projects), and I'm still in touch from time to time with their R&D director.

Hey @pansk I'm still choosing a home automation system and will definitely do the same things you did if I decide on Comelit ;-) can you tell me some technical details? I'm currently only interested in flipping the switches and not stripping their clients. If I can talk to the API I can build my own interface.

I also found this but it seems a bit hacky. https://github.com/fafoulon/homebridge-vedo-full-radio~~
Nevermind, it's something else.

Yes I did.
I'm able to control Comelit devices like lights, blinds and read ambient temperature, power..
If you need some hints contacts me

I @kottle !! I'm interested, how do I manage to manage comelit?

Hi bongiova how i can contact you about Comelit integration?
Thanks

I would be very interested in a binding for the Comelit intercom systems (the door entry phones, specifically the Mini line).

Hi all,
I did some work to control the Comelit Simple Home.
I created a simple REST application (and a docker container) that can easily integrate systems such as IFTTT/OpenHAB.
It exploits the Comelit Serial Bridge.
Look at https://github.com/giovannicammarata/gc-simple-home/wiki

Hi all,

from 3 months I have openhab running with my Comelit Simple Home domotic system (with google assistant!). More or less the system use the some way of giovannicammarata.

I use the serial bridge with http binding from openhab. With OH (http binding) I simulate the "click" on icons for shot the actions. Also is possibile to have the states reading xml file frome serial bridge.

Item eg:
Switch Luce_Lavanderia "Lavanderia" ["Switchable"] { http=">[OFF:POST:http://BRIDGE_USER:BRIDGE_PWD@BRIDGE_IP/user/luci.cgi?luce=7] >[ON:POST:http://BRIDGE_USER:BRIDGE_PWD@BRIDGE_IP/user/luci.cgi?luce=7] <[http://BRIDGE_USER:BRIDGE_PWD@BRIDGE_IP/user/luci.xml:2000:JS(getLampState07.js)]" }

The system simulate the click on the icon no 7 (in the lights page) and read the state every 2 sec from luci.xml file.

Important use POST to shot the actions! otherwise the action is not sent!
Not necessary for read the luci.xml file

The js transform, read the xml and extract the state for icon 7 returning ON or OFF.

This could be used for lights, roller and security system. Also I think for temperature (I don't have it under my comelit system)

hope to be useful....

note: there are some (2, i think...) different bridge, with different pages and xml names. Use the debug page of chrome to see the action when you press the icon on the serial bridge web page...

pier

Hi I have serialbridge and I鈥檓 trying to use your system outside OH.
I want to create a ESP32 module which manage the data and resend via mqtt.
Actually I bybassed the bus sending command directly to the modules and receiving the state by octocouoler
Is not clear how you use tokens.

And how can I obtain the link for on off and state ( do you use wireshark)?

Can I for example send on and off command via browser ?

Hi,
Yes it's possible from arduino device open a remote link with the client object:
Lock this example, (I used for have my home remote IP...) try....

WiFiClient client;
const char* host = "BRIDGE_USER:BRIDGE_PWD@BRIDGE_IP";

// This turn on/off the light no. 7
if (client.connect(host, 80)) {
// In case try POST
client.println("GET /user/luci.cgi?luce=7 HTTP/1.1");
client.println("Host: BRIDGE_IP");
client.println("Connection: close");
client.println();
client.stop();
end if

In any case you must open a remote host passing some data.... this is the target

Normally I debug the commands using the debug window of chrome, from this, you can see the command sent to host after a "link click". Also wireshark could be used... but it's more complicated...

Again, also, from the arduino device, you can read the xml file (reading a remote host page) and have the light state...

hope to be useful....

Pier

Do you have serial bridge or the hub? The work in different ways .

I have a serial bridge...
This one (i think): https://pro.comelitgroup.com/it-it/prodotto/20003101

To debug web calls:
Open chrome, press F12 for enable the consolle.
When yuo click a link, you can see the call to the remote host....

Try

For who is interested, I started a new plugin for the Homebridge project about the new Comelit HUB (not the bridge): https://github.com/madchicken/homebridge-comelit-hub
I could port it to OpenHAB as well

hey guys. i'll try to give my contribute i know is not very much

I've checked in my Comelit links and i can control lights send these commands:

ON OFF commands:
http://BRIDGE_IP:PORT/user/action.cgi?type=Z&numX=Y&
where:
Z can be: light,thermo,other,shutter,alarm,irrigation
X can be: "0" off or "1" on
Y can be a number (is the ID of the light that you can find in simpleprog)

For recall the status i found:

http://BRIDGE_IP:PORT/user/icon_status.json?type=X&_
X can be: light,thermo,other,shutter,alarm,irrigation

the light page for example reply with this page:

{
"life": 1,
"domus": "100CC0C00CC1",
"status": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"val": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
}

where the status bar reflect the status of light for every single light from ID0 to ID?

The thermo page instead reply with

{
"life": 1,
"domus": "100CC0C00CC1",
"status": [0],
"val": [[209,"W","M",208]]
}

where status indicates if the thermo is on. 209 indicates the actual temperature (20,9 in my case)
"W" indicates winter or "S" summer mode
"M" indicate manual mode "A" indicate auto mode
"208" indicates the target temperature (20,8) in my case.

My intentions are 2:
create a code running in a raspberry which send and receive data from and to an MQTT Broker.
create an interface like arduino (NodeMCU) to manage these data by HTTP library sending and receiving from and to an MQTT broker.
In this way the interface will be highly compatible with all domotic systems

The 2 things are similar.
i'm not able to transform the status page to true data to manage... someone can help me?

Thank you

Good Job!, thanks

Also If you are interested thare is a schetch for arduino that implements the MQTT protocol; also for arduino with ethernet shield.

I used for monitoring a swimmingpool pump...

This are some examples...
https://www.arduinolab.net/mqtt-node-with-arduino-uno-and-w5100-ethernet-shield/
http://www.lucadentella.it/2016/11/02/mqtt-enc28j60-e-arduino-22/

Pier

Hi Pier. I have already bypassed the come lit system with this system.
But i need 3 MCU to serve my home. Actually i obtain the status by optocoupler on the output of Comelit Relay Module. MQTT Signal generated by other sources like homebrige are routed to the digital output to command the input of the module.

But now i want to eliminate the bypass... Simply i need something which retreive the status for the html page listed above and convert the line "status" to various MQTT Signal.
I miss The html part.

Thank you

Hi,

you must read a remote web page... every 3/4 sec, parse the content, and send mqtt data....
With the sample mqtt ethernet you can do this... for read the remote web page (at the moment I do the same via OH) try this:
https://forum.arduino.cc/index.php?topic=431626.0

there is some sample code about how to open a remote address and print on serial.... you must trasform in mqtt data packet and transmit

Is it correct what I understand?

Hello ciapamusche,

a question, do you have SerialBridge or Comelit Hub?
If comelit hub, is it a mqtt device????
Is it the hub the broker? Or you can configure to connect an external broker (eg: openhab)?

Thanks

Pier

I can answer this question @Pier1971 since I developed the homebridge plugin: the new hub is a MQTT broker itself and it sends JSON structures in messages

Hello ciapamusche,
a question, do you have SerialBridge or Comelit Hub?
If comelit hub, is it a mqtt device????
Is it the hub the broker? Or you can configure to connect an external broker (eg: openhab)?
Thanks
Pier

hi pier sorry for delay

Im using serialbridge.
And i want to configure my arduino to connect an external broker (in my case is mosquitto inside a raspberry). I dont use openhab.
Mosquito is a broker mqtt which comunicate with all my device in my home. (eg. Temperature sensor humidity sensor). Every time i create an accessory for my house with arduino (ESP8266) i use mqtt bus.

So i need a help to configure this part. I dont know if is possible create directly a file to run in rasperry to do this.

Thank you

Si l'ho fatto.
Sono in grado di controllare i dispositivi Comelit come luci, persiane e leggere la temperatura ambiente, la potenza ..
Se hai bisogno di qualche suggerimento contattami

Ciao a tutti,
ho fatto un po 'di lavoro per controllare Comelit Simple Home.
Ho creato una semplice applicazione REST (e un contenitore docker) che pu貌 facilmente integrare sistemi come IFTTT / OpenHAB.
Sfrutta il ponte seriale Comelit.
Guarda https://github.com/giovannicammarata/gc-simple-home/wiki

Hi all,
I did some work to control the Comelit Simple Home.
I created a simple REST application (and a docker container) that can easily integrate systems such as IFTTT/OpenHAB.
It exploits the Comelit Serial Bridge.
Look at https://github.com/giovannicammarata/gc-simple-home/wiki

Salve, come posso contattarti?? volevo chiederti informazione su come gestire il serial bridge di comelit con openHAB.

Si l'ho fatto.
Sono in grado di controllare i dispositivi Comelit come luci, persiane e leggere la temperatura ambiente, la potenza ..
Se hai bisogno di qualche suggerimento contattami

Ciao a tutti,
ho fatto un po 'di lavoro per controllare Comelit Simple Home.
Ho creato una semplice applicazione REST (e un contenitore docker) che pu貌 facilmente integrare sistemi come IFTTT / OpenHAB.
Sfrutta il ponte seriale Comelit.
Guarda https://github.com/giovannicammarata/gc-simple-home/wiki

Hi all,
I did some work to control the Comelit Simple Home.
I created a simple REST application (and a docker container) that can easily integrate systems such as IFTTT/OpenHAB.
It exploits the Comelit Serial Bridge.
Look at https://github.com/giovannicammarata/gc-simple-home/wiki

Salve, come posso contattarti?? volevo chiederti informazione su come gestire il serial bridge di comelit con openHAB.

Hi,
You can ask here (or here if related to my REST server). The discussion will be useful for everyone. In any case, currently, I have not any experience with openHab.

Ciao,
puoi scrivere direttamente qui (oppure qui se e' relativa al mio REST server) in modo che la discussione sia utile per tutti, anche perche' la mia esperienza con openHab e' quasi nulla.

GC

praticamente io vorrei configurare il serial bridge di Comelit su openHAB o qualcosa di simile cos矛 poi da gestire il tutto con Alexa o Siri

@kottle is it possible to get some information (some code). I'd like to support comelit devices

Maybe this is not the appropriate thread, but I am trying to decode Simplebus protocol from Comelit 6721W and can't find any information.
Has someone tried it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trailblazer2006 picture trailblazer2006  路  6Comments

openPhiL picture openPhiL  路  5Comments

J-N-K picture J-N-K  路  6Comments

d3rh3ld picture d3rh3ld  路  4Comments

Alex5719 picture Alex5719  路  6Comments