Jump to content
C4 Forums | Control4

Berto IoT Gateway with Third Party MQTT Integration Opened Up


Recommended Posts

Hi all,

I've just released version 1.27 of my IoT Gateway driver which has been opened up to allow other driver developers to access the MQTT functions.

Just a few simple proxy functions to REGISTER and PUBLISH messages and ExecuteCommand handlers to receive MESSAGEs.

Driver available at https://prod.berto.io/download/Berto_IOTGateway.c4z

Sample driver with source code showing integration available at https://prod.berto.io/download/Berto_IOTClient.c4z

Thank you

David

Link to comment
Share on other sites


So been waiting for this for so long, yes you need to know how to develop your own drivers but now the options are endless. I have so many different devices that are on my main MQTT brokers that are not the C4 type devices i.e. Sonoff, Shelly, Wireless circuit breakers, other zigbee providers etc and this allows me to communicate and then program events in C4 based on the messages coming from the broker.

@david@berto.co.uk this really is awesome and opens a huge door for other developers to make use of this!!

Link to comment
Share on other sites

5 hours ago, ILoveControl said:

So been waiting for this for so long, yes you need to know how to develop your own drivers but now the options are endless. I have so many different devices that are on my main MQTT brokers that are not the C4 type devices i.e. Sonoff, Shelly, Wireless circuit breakers, other zigbee providers etc and this allows me to communicate and then program events in C4 based on the messages coming from the broker.

@david@berto.co.uk this really is awesome and opens a huge door for other developers to make use of this!!

Thanks

I've also opened up the Cloud driver to expose the SMTP function.

The integration to the IoT Gateway is great if your just working with a single MQTT broker ie. your local IoT setup, but for multiple connections I'm opening up the MQTT functions on the Cloud driver also which means that you just need to install the one driver to use any MQTT broker or SMTP service from any other drivers.

Link to comment
Share on other sites

On 8/14/2021 at 11:13 AM, ILoveControl said:

So been waiting for this for so long, yes you need to know how to develop your own drivers but now the options are endless. I have so many different devices that are on my main MQTT brokers that are not the C4 type devices i.e. Sonoff, Shelly, Wireless circuit breakers, other zigbee providers etc and this allows me to communicate and then program events in C4 based on the messages coming from the broker.

@david@berto.co.uk this really is awesome and opens a huge door for other developers to make use of this!!

Berto Cloud now has SMTP_SENDMAIL and MQTT_CONNECT,  MQTT_DISCONNECT and MQTT_PUBLISH functions exposed. Available at https://prod.berto.io/download/Berto_Cloud.c4z and example of how to use functions at https://prod.berto.io/download/Berto_SDK.c4z 

Thanks

Link to comment
Share on other sites

Hello @david@berto.co.uk

have you noticed that relay light driver is not working with advanced lightning scenes? When you put the light in a scene it is not controlled.

one more thing, have you consider to develop an integration with zwavejs2mqtt? Since you already have zigbee2mqtt i believe it is not that much different.

 

best regards

Link to comment
Share on other sites

1 hour ago, eon said:

Hello @david@berto.co.uk

have you noticed that relay light driver is not working with advanced lightning scenes? When you put the light in a scene it is not controlled.

one more thing, have you consider to develop an integration with zwavejs2mqtt? Since you already have zigbee2mqtt i believe it is not that much different.

 

best regards

That was fixed in the previous release, advance lighting scene works now.

Link to comment
Share on other sites

Just now, eon said:

Oh, but this driver is not used at the current release, the IOT light and IOT dimmer uses the light proxy and is easier for you to attach light loads without the need of Relay to light

Link to comment
Share on other sites

1 hour ago, Amr said:

Oh, but this driver is not used at the current release, the IOT light and IOT dimmer uses the light proxy and is easier for you to attach light loads without the need of Relay to light

I”m device that is not supported by iot gateway and using mqtt relay connected to mqtt bridge to control the light. 

Link to comment
Share on other sites

6 hours ago, david@berto.co.uk said:

What is the device you are using? 
 
I’ll look into the relay light issue with lighting scenes as it should be supported. 

Thanks

I’m using zwave switch connected via mqtt, the relay light is connected to mqtt relay, i can switch on and off the light manually but when input it on scene is not responding.  If i manually activate the light the scene is reporting accoringly -active/inactive.

 

best regards

Link to comment
Share on other sites

59 minutes ago, eon said:

I’m using zwave switch connected via mqtt, the relay light is connected to mqtt relay, i can switch on and off the light manually but when input it on scene is not responding.  If i manually activate the light the scene is reporting accoringly -active/inactive.

 

best regards

What is the model number of the switch? What are the payloads for the relay?

Link to comment
Share on other sites

Hello @david@berto.co.uk i’m using FGS-212 from Fibaro connected to a zwavejs2mqtt, the topic that this switch is using is z2m/Balcony/37/1/targetValue/set for control and z2m/Balcony/37/1/currentValue for feedback state. The payload is true and false only. So in mqttrelay driver im using z2m/Balcony/37/1/targetValue/set false and z2m/Balcony/37/1/targetValue/set true for control of the light and its working as expected. I tried http://www.chowmainsoft.com/relay-to-light connected to your mqtt relay and scenes - advanced lightning is working and the relay is controlled. But with your driver they are not controlled through scene - advanced lightning.

best regards

Link to comment
Share on other sites

17 minutes ago, eon said:

Hello @david@berto.co.uk i’m using FGS-212 from Fibaro connected to a zwavejs2mqtt, the topic that this switch is using is z2m/Balcony/37/1/targetValue/set for control and z2m/Balcony/37/1/currentValue for feedback state. The payload is true and false only. So in mqttrelay driver im using z2m/Balcony/37/1/targetValue/set false and z2m/Balcony/37/1/targetValue/set true for control of the light and its working as expected. I tried http://www.chowmainsoft.com/relay-to-light connected to your mqtt relay and scenes - advanced lightning is working and the relay is controlled. But with your driver they are not controlled through scene - advanced lightning.

best regards

I need to add zwavejs2mqtt to my IoT gateway, looks very good. Does it support all the Fibaro devices?

Have made a fix to the relay light so hopefully scenes supported now.

Thanks

 

 

 

Link to comment
Share on other sites

1 hour ago, david@berto.co.uk said:

I need to add zwavejs2mqtt to my IoT gateway, looks very good. Does it support all the Fibaro devices?

Have made a fix to the relay light so hopefully scenes supported now.

Thanks

 

 

 

It supports all kind of zwave devices and they are very fast, much faster than native zwave dongle of c4 with fibaro dimmer 2 and much faster than vera. At the moment on my zwave js network which i run with home assitant i have Fibaro Single Switch, fibaro Double Switch, Fibaro Dimmer, Aeotec Nano Dimmer, Aeotec Smart Switch 5 and 6, Aeotec Multi Sensor 6 and Trisensor, Remotec Zxt600 and 120 Ir transmiters for Split AC., Danalock Lock POPP Keypad, Qubino Single Relay, Heiman Temp and Humidity Sensor, Heiman Smoke Sensor, Zipato Bulb. I think that i didnt miss anything :) , beside mqtt there is also websocket api. https://github.com/zwave-js
 

If you need someone for beta testing i’m available.

Link to comment
Share on other sites

8 minutes ago, eon said:

It supports all kind of zwave devices and they are very fast, much faster than native zwave dongle of c4 with fibaro dimmer 2 and much faster than vera. At the moment on my zwave js network which i run with home assitant i have Fibaro Single Switch, fibaro Double Switch, Fibaro Dimmer, Aeotec Nano Dimmer, Aeotec Smart Switch 5 and 6, Aeotec Multi Sensor 6 and Trisensor, Remotec Zxt600 and 120 Ir transmiters for Split AC., Danalock Lock POPP Keypad, Qubino Single Relay, Heiman Temp and Humidity Sensor, Heiman Smoke Sensor, Zipato Bulb. I think that i didnt miss anything :) , beside mqtt there is also websocket api. https://github.com/zwave-js
 

If you need someone for beta testing i’m available.

You have quite interesting Zwave base, also u r using HA, what do you use Control4 for?

Link to comment
Share on other sites

35 minutes ago, eon said:

It supports all kind of zwave devices and they are very fast, much faster than native zwave dongle of c4 with fibaro dimmer 2 and much faster than vera. At the moment on my zwave js network which i run with home assitant i have Fibaro Single Switch, fibaro Double Switch, Fibaro Dimmer, Aeotec Nano Dimmer, Aeotec Smart Switch 5 and 6, Aeotec Multi Sensor 6 and Trisensor, Remotec Zxt600 and 120 Ir transmiters for Split AC., Danalock Lock POPP Keypad, Qubino Single Relay, Heiman Temp and Humidity Sensor, Heiman Smoke Sensor, Zipato Bulb. I think that i didnt miss anything :) , beside mqtt there is also websocket api. https://github.com/zwave-js
 

If you need someone for beta testing i’m available.

What is zwavejs2mqtt running on?

Link to comment
Share on other sites

47 minutes ago, Amr said:

You have quite interesting Zwave base, also u r using HA, what do you use Control4 for?

:)  I like to came up with the most complicated way to control my home :) zwave was connected to C4 via Vera but vera does not like the fibaro dimmers too much it is too slow if you control a scene, than i moved to native zwave on c4 for the dimmers but again the native zwave on c4 was slow and unreliable. In the meantime i used home assistant to translate some devices via http and mqtt to C4. Than i moved all my devices to zwavejs and i was amazed by the speed :) so now i’m using home assistant and node red to get states from zwavejs to c4 via C42WAY driver which accepts http commands in C4 and use generic tcp driver from chowmain to send http commands to Home Assistant. And just started to thinker with berto mqtt IoT gateway and etc drivers to see if i can simplify things. Back to your original question Home Assistant has a lousy ui and there is a lot of work to achive simple thing C4 has a great Ui that is why i’m using C4 plus i’m controling my AV via C4

 

p.s. I forgot i use home assistant also to expose all my devices to homekit

Link to comment
Share on other sites

13 minutes ago, david@berto.co.uk said:

What is zwavejs2mqtt running on?

I have one instance on Docker on unraid as a backup in case if i mess up my NUC or PI on which i run Home Assistant and diferent addons for my home, because i want to thinker with them :)

Link to comment
Share on other sites

13 minutes ago, eon said:

I have one instance on Docker on unraid as a backup in case if i mess up my NUC or PI on which i run Home Assistant and diferent addons for my home, because i want to thinker with them :)

What is the repository you used for this?

Link to comment
Share on other sites

7 minutes ago, Amr said:

What is the repository you used for this?

For Unraid i used the one that is in unraid app store just search zwavejs2mqtt, for home assistant there is addon developed by Home Assistant and its install from addons.

Unraid https://unraid.net/community/apps/c/homeautomation?notTheDroidYoureLookingFor=d2JmamZlcHJ0bXZ1d3hzcGF5bWx1bGJvcXFlanJlamI%3D&q=Zwavejs#r

 

home asistant https://github.com/hassio-addons/addon-zwavejs2mqtt

 

 

Link to comment
Share on other sites

3 hours ago, david@berto.co.uk said:

I need to add zwavejs2mqtt to my IoT gateway, looks very good. Does it support all the Fibaro devices?

Have made a fix to the relay light so hopefully scenes supported now.

Thanks

 

 

 

I tried to force update the driver but its still on 1.12 where i can download fixed version?

Link to comment
Share on other sites

On 8/18/2021 at 8:37 PM, eon said:

I tried to force update the driver but its still on 1.12 where i can download fixed version?

I belive from the site directly, I don't think update had been pushed

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.