Jump to content
C4 Forums | Control4

david@berto.co.uk

c4Forums Member
  • Posts

    234
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by david@berto.co.uk

  1. Thanks Christophe/NextGenAV.

    Sometimes I've noticed that the MQTT bridge can lose subscriptions when drivers are added/updated. I'll look into this but in the mean time will add an Action option to refresh subscriptions to see if this sorts the issue next time you have the problem.

  2. 1 hour ago, Amr said:

    This worth trying David thanks, can't we use any of the commercially available BLE solutions like Flic Hub or Xiaomi, or whatever instead of using the Pi?

    Not sure about Xiamoi but the Flic hub has does not have a open API as far as I can find hence why I used the PI. The install ins simple but a PI and insert the SD card with the software on it and all done. I'll publish the SD image with the drivers.

    From Control4 you can then Identify buttons which allows you to pair the Flic button to the PI and then associate it to the Flic Button driver in Control4.

    The setup is as simple as the Flic app.

  3. Zuhair,

    You only need one instance of the Cloud driver installed.

    When this is installed you will be able to install the MQTT Bridge from the properties page, you need an instance of this per MQTT broker you want to connect to, normally one.

    You then install the Sonoff Relay driver, one per 4 way relay unit. Set the Topic name to be the same that you set in the Tasmota or ESPurna config page on the Sonoff.

    Thanks

     

    David

  4. Luis,

    This looks correct and is the same way that I trigger things. See enclosed. 

    I have used my IFTTT driver to send a message when the light is turn on or off and all appears to work fine.

    The only thing I can think of is that the variables in programming do not match the ones being updated which can sometimes happen when adding/deleing variables when the driver is loaded.

    May be worth clearing the current programming, rebooting and trying again.

    David213908990_Screenshot2018-12-14at09_40_23.thumb.png.15aa600d3b48ba965f6ea056078f9548.png

  5. Amr,

    I believe Flic buttons use BLE to communicate, not sure if they are iBeacon, Eddystone or proprietary.

    I have just put some BLE drivers up at https://github.com/davidmassot/Berto which allow advertisements from iBeacon devices to be used in Control4. I'm using this for proximity.

    If Flic advertisements can be received by a standard BLE receiver eg. https://blog.aprbrother.com/product/ab-ble-gateway-4-0, then this would be relatively easy to implement.

    David

  6. The DEVICE messages are those messages received from subscribed topics associated to connected drivers to the bridge ie. those with a link the the MQTT_LINK connection. I have a Sonoff _Relay and Homekit driver that talk directly to the bridge.

    The GENERAL messages are those that are received against topics that you specify in the Topics field on the properties page.

    Cheers

     

    David

     

  7. 4 hours ago, NOS4A2 said:

    David,

    Would you have a sample code of how to send a mqtt message?

    I am planning to send the status of my switches and dimmers to Home Assistant every time they change the state.

    I believe it won't be much different of how you send messages to Sonoff/Tasmota.

    Thanks in advance

    You can publish messages to topics from my MQTT Bridge driver. The bridge needs to be registered to your MQTT broker, I use Mosquitto on a local Raspberry Pi but any platform will do, you could use AWS IoT services but then your going out to the Internet etc. 

    Once the bridge is setup and logged into a broker you can publish messages from programming, I have enclosed screenshots.

    If on the other hand you would like to write your own Control4 drivers to interface with my MQTT Bridge then I can send you a sample driver that links to the bridge.

    Thanks

    David733379227_Screenshot2018-12-06at08_42_32.thumb.png.7f758c5fa2a58987fe97a6be5b6bbc85.png1913624592_Screenshot2018-12-06at08_41_10.thumb.png.adedfdc5777c6344598fb76761efe8bf.png

  8. 5 minutes ago, Zuhair said:

    This is really interesting! I installed Mosquitto broker on my Ubuntu home server, my dealer will install the drivers this week, USB adapter is on the way!

    I'm planning to test the Sonoff smart switches to light up the backyard when there is a motion and the system is armed. And maybe few beeps or a siren on the outdoor speakers!

    Great.

    You only need to install the Berto_Clould driver from GitHub, https://raw.githubusercontent.com/davidmassot/Berto/master/c4z/Berto_Cloud.c4z. You can install the remaining drivers from the Berto Cloud properties page. I've made some updates so make sure your dealer downloads the latest one when he goes to install.

    Have fun.

×
×
  • Create New...

Important Information

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