Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Fibaro HC2 Virtual Device Gateway

Fibaro HC2 Virtual Device Gateway

Scheduled Pinned Locked Moved Controllers
20 Posts 9 Posters 16.4k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mathias
    wrote on last edited by
    #1

    I just got some got some basic functionality on a HC2 Controller Gateway for MySensors.

    In my first attempt to make this an fully functional MySensor controller it have the following functionality:

    • Register new Ardino Nodes/Relays with a new free radio ID

    • Autocreate new virtual Device for Door Sensors

    • Update Icon, Status and Last Update on Door sensors when changed

    • Autocreate new virtual device for Light Sensors (Relay)

    • Update Icon, Status and Last Update on Light/Relay sensors when changed

    • Turn On/Off Light/relay sensor from virtual device

    Some teasers on the virtual devices:
    DoorSensor.png
    LightSensor.png
    LightSensorSmall.png

    Thanks to hek for his support and time on all my questions on the MySensors API.

    Next step: Order more hardware for more sensors to test with:)

    //Mathias

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mathias
      wrote on last edited by
      #2

      Now also working with temperature sensor

      temp_large.png
      temp_small.png

      Seems to be some conversion issues when writing decimals to label values, it adds way to many decimals even if i try to convert it to just two decimals..

      //Mathias

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mathias
        wrote on last edited by
        #3

        Restriction #1 You cannot add a MySensor sensor as a main source for light,temp, humidity or thermostat on a room.

        This will not be added to the next coming releases but has been passed to the developeras at fibaro to be able to add Virtual Devices as default devices to room..

        //Mathias

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mathias
          wrote on last edited by
          #4

          Restriction #2 Its not possible from a MySensor/Virtual Device to register an event to be listed in the Events Panel.

          But you could have some history with fibaro:debug instead or other external source if needed.

          //Mathias

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mathias
            wrote on last edited by
            #5

            Decimals solved in labels by adding "\"" before and after value

            fibaro:call(nodeDevice,"setProperty", "ui.lblSensorStatus.value", "\"" .. value .. "\"")
            

            2015-06-22_10-13-36.png

            1 Reply Last reply
            0
            • barduinoB Offline
              barduinoB Offline
              barduino
              wrote on last edited by
              #6

              Its looking pretty good!

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sonnyboy
                wrote on last edited by sonnyboy
                #7

                Nice work :)
                What kind of Gateway do you use?
                To get just 2, decimlas you can try this instead, then you got the celcius sighn to

                "ui.lblSensorStatus.value", value.."°")
                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mathias
                  wrote on last edited by
                  #8

                  Im using an Ethernet Gateway as described here on MySensors.org with an arduino nano and W5100 ethernet module.

                  Will add a celcius character so it looks nicer, thanks.

                  1 Reply Last reply
                  0
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by hek
                    #9

                    But you're also using this branch of the library right?
                    https://github.com/mysensors/Arduino/tree/gateway-refactoring

                    (at least when compiling eth-gateway..)

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mathias
                      wrote on last edited by
                      #10

                      No i think i took the one you could download from the ordinary pages. What is the differences, im pretty new in the arduino world:)

                      1 Reply Last reply
                      0
                      • hekH Offline
                        hekH Offline
                        hek
                        Admin
                        wrote on last edited by
                        #11

                        Oh, even better! I thought the plugin needed a gateway which acted as a client (connecting to controller).

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mathias
                          wrote on last edited by
                          #12

                          No, HC2 is connecting to the MySensor Gateway. Fibaro have locked down the ability to create a socket listener and is only available if you create a plugin which has been disabled for public users to upload.

                          The code in HC2 is implemented as a Virtual Device that is creating an outbound tcp connection to the MySensors Ethernet Gateway.

                          thommeT 1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            sonnyboy
                            wrote on last edited by
                            #13

                            Thanks for the reply, now i just have to wait for everything to come home so i can test this :) more questions will come 😉

                            1 Reply Last reply
                            0
                            • F Offline
                              F Offline
                              fastie81
                              wrote on last edited by
                              #14

                              Hi
                              I know this is an old topic, but I am just getting started with Mysensor.
                              I would like to add my Fibaro setup.
                              @mathias would you be able to share your LUNA code for the Virtual device to integrate the Gateway?
                              And just out of interest what version of Fibaro are you running?
                              It would be much appreciated
                              Thanks
                              Chris

                              M 1 Reply Last reply
                              0
                              • F fastie81

                                Hi
                                I know this is an old topic, but I am just getting started with Mysensor.
                                I would like to add my Fibaro setup.
                                @mathias would you be able to share your LUNA code for the Virtual device to integrate the Gateway?
                                And just out of interest what version of Fibaro are you running?
                                It would be much appreciated
                                Thanks
                                Chris

                                M Offline
                                M Offline
                                Mille
                                wrote on last edited by
                                #15

                                Hi
                                I'm also interested in this code for HC2

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  medline2c
                                  wrote on last edited by
                                  #16

                                  hello,
                                  I've a HC2 and I'm very interresting to test this code ... where can I found it ?
                                  thanks

                                  1 Reply Last reply
                                  0
                                  • Tomasz PazioT Offline
                                    Tomasz PazioT Offline
                                    Tomasz Pazio
                                    wrote on last edited by
                                    #17

                                    Any progress on this topic? Fibaro have good controller, it would be interesting to have it fully integrated with Mysensors.

                                    F 1 Reply Last reply
                                    0
                                    • Tomasz PazioT Tomasz Pazio

                                      Any progress on this topic? Fibaro have good controller, it would be interesting to have it fully integrated with Mysensors.

                                      F Offline
                                      F Offline
                                      fastie81
                                      wrote on last edited by
                                      #18

                                      @Tomasz-Pazio Nothing has happened here. Have reached out a few times.
                                      I am using Domoticz with FibaroLink in the meantime. Would love to not have Domoticz in the middle but with Fibaro not opening plugins and dont know how to code this just have to do..

                                      I am trying to learn Lua very slowly.

                                      Hope the get there some point.

                                      Chris

                                      1 Reply Last reply
                                      0
                                      • M mathias

                                        No, HC2 is connecting to the MySensor Gateway. Fibaro have locked down the ability to create a socket listener and is only available if you create a plugin which has been disabled for public users to upload.

                                        The code in HC2 is implemented as a Virtual Device that is creating an outbound tcp connection to the MySensors Ethernet Gateway.

                                        thommeT Offline
                                        thommeT Offline
                                        thomme
                                        wrote on last edited by
                                        #19

                                        Hello @mathias I dont know if you are still in the business of Writing code and solve problems like the Fibaro one.

                                        Could you please share the solution in full with the rest of us. It seems like this topic Fibaro/Mysensor died 2 years ago. Why is that? It feels strange when you got a proof of concept.

                                        If Mathias is out of business for some reason, could you @hek clearify things with the fibaro/mysensors. I noticed that you participated in a discussion at the z-wave forum in the sam matter.

                                        Regards/Med vänlig hälsning
                                        Thomas

                                        1 Reply Last reply
                                        0
                                        • hekH Offline
                                          hekH Offline
                                          hek
                                          Admin
                                          wrote on last edited by
                                          #20

                                          It seems abandoned, but I'll ping @mathias over email.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          11

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular