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. General Discussion
  3. Stand alone lighting control system

Stand alone lighting control system

Scheduled Pinned Locked Moved General Discussion
29 Posts 7 Posters 6.9k 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.
  • D Offline
    D Offline
    dakipro
    wrote on last edited by
    #21

    very good points @TheoL , I am all for easy AND very reliable solutions.

    Honestly, I didn't find much info about MQTT, on build pages it says that "The MQTT gateway is basically a Ethernet Gateway with modified software which makes it act as a MQTT broker", and first comment says there are bunch of errors, and for me as a beginner in mysensors/HA it is probably another "complicated" term and technology I need to get my hands on.
    I will try to find more info about benefits of the MQTT protocol, but if it would be possible to have a "backup" controller as you describe it or something else that would be dedicated to the "lighting control" logic, then I would definitely like to try it. Please do tell more :)

    C: OpenHAB2 with node-red on linux laptop
    GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
    GW: Arduino Mega, RFLink 433Mhz

    TheoLT 1 Reply Last reply
    0
    • D dakipro

      very good points @TheoL , I am all for easy AND very reliable solutions.

      Honestly, I didn't find much info about MQTT, on build pages it says that "The MQTT gateway is basically a Ethernet Gateway with modified software which makes it act as a MQTT broker", and first comment says there are bunch of errors, and for me as a beginner in mysensors/HA it is probably another "complicated" term and technology I need to get my hands on.
      I will try to find more info about benefits of the MQTT protocol, but if it would be possible to have a "backup" controller as you describe it or something else that would be dedicated to the "lighting control" logic, then I would definitely like to try it. Please do tell more :)

      TheoLT Offline
      TheoLT Offline
      TheoL
      Contest Winner
      wrote on last edited by
      #22

      @dakipro I'll try to add an MQTT tutorial within a couple of weeks. I want to do an MQTT presentation for my colleagues so why not combine it with a tutorial for the MySensors community. It's a bit hard to understand in the beginning, but once you understand the basics, you wonder why you not have used it before.

      But again, there should be no need for an master/slave controller implementation. The only thing I can't prevent is an power outage. Everything else runs very stable in my house at least. And if I don't want to control my lighting with my Home Automation controller, I'm still able to use manually operated switches, which is one of my main design principles when designing new MySensors actuators.

      Most important for each Node is that you simply don't used the Arduino as a power supply. I found that out the hard way. I now power everything from an power adapter, incl. the Antenna.

      Nca78N 1 Reply Last reply
      2
      • TheoLT TheoL

        @dakipro I'll try to add an MQTT tutorial within a couple of weeks. I want to do an MQTT presentation for my colleagues so why not combine it with a tutorial for the MySensors community. It's a bit hard to understand in the beginning, but once you understand the basics, you wonder why you not have used it before.

        But again, there should be no need for an master/slave controller implementation. The only thing I can't prevent is an power outage. Everything else runs very stable in my house at least. And if I don't want to control my lighting with my Home Automation controller, I'm still able to use manually operated switches, which is one of my main design principles when designing new MySensors actuators.

        Most important for each Node is that you simply don't used the Arduino as a power supply. I found that out the hard way. I now power everything from an power adapter, incl. the Antenna.

        Nca78N Offline
        Nca78N Offline
        Nca78
        Hardware Contributor
        wrote on last edited by
        #23

        @TheoL that would be awesome, I'm using a serial gateway at the moment but upgrading to MQTT is on the roadmap, a tutorial would save me a lot of time setting everything up :)

        1 Reply Last reply
        0
        • sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #24

          I agree with @TheoL - I run Domoticz and Ethernet GW without major issues for 1.5 years now... offcourse there was some initial setup problems. You need to be able to run everything on a smaller arduino. Lightswitches and spaces you are going to work in are most of the times very tight so dont forget about that.

          I also run a arduino + relay with the switch connected to this relay through D3 for example. If MySensors fail (untested in real enviroment so far) the switch should still work by hitting the switch.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          1 Reply Last reply
          0
          • D dakipro

            For me personally the main focus is not fallback as is independency from the controller/domoticz.
            Also there is delay when you use domoticz as controller, which annoys me so much. I click on the switch, sometims it is 2s before the light comes on. And there is always "stress" of switch not working, rebooting or what not.
            Also there is convenience on only programming one single node when new lights are added (or existing changed). And when we talk 25-30 lights and 15-20 light switch nodes as mentioned in the first topic, I would like to avoid ever touching those 40-50 nodes and edit logic in one place.
            There is always a balance between convenience / reliability, but one can have clone of the "controller" node as a backup, just in case main dies, you just plug inn the backup :)

            P Offline
            P Offline
            pjr
            wrote on last edited by pjr
            #25

            @dakipro said:

            For me personally the main focus is not fallback as is independency from the controller/domoticz.
            Also there is delay when you use domoticz as controller, which annoys me so much. I click on the switch, sometims it is 2s before the light comes on. And there is always "stress" of switch not working, rebooting or what not.

            This might help if someone could make it as configurable value and will merge it to codebase: https://www.domoticz.com/forum/viewtopic.php?p=93701#p92910

            I've designed my setup another way: The house is divided in 5 areas. Every area has its own relay box where all the actuators of that area are living. So in normal wall boxes I have only weak current. I'll try to implement everything based on rs485. Most of the buttons will be directly tied to actuator and some are action buttons for HA controller. Mainly for scenes I think.

            Another solution I was thinking is that as fall back I could use nexa remote to control those actuator-boxes directly since it has ability to control 4x4 devices or 4x8 if you use it for toggle... but the problem might be that the remotes are always lost..

            1 Reply Last reply
            0
            • D dakipro

              For me personally the main focus is not fallback as is independency from the controller/domoticz.
              Also there is delay when you use domoticz as controller, which annoys me so much. I click on the switch, sometims it is 2s before the light comes on. And there is always "stress" of switch not working, rebooting or what not.
              Also there is convenience on only programming one single node when new lights are added (or existing changed). And when we talk 25-30 lights and 15-20 light switch nodes as mentioned in the first topic, I would like to avoid ever touching those 40-50 nodes and edit logic in one place.
              There is always a balance between convenience / reliability, but one can have clone of the "controller" node as a backup, just in case main dies, you just plug inn the backup :)

              TheoLT Offline
              TheoLT Offline
              TheoL
              Contest Winner
              wrote on last edited by
              #26

              @dakipro I missed your 2s delay in Domoticz post. I'm also experiencing that. But as far as I can tell, the delay is only there when I use the web interface. When I control lightnings via MQTT, the lightning responds instantly.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dakipro
                wrote on last edited by
                #27

                are you using domoticz as well?
                I've read that mqtt is "officially" not supported, but it could work. Anyway, I am looking forward to your presentation :)

                C: OpenHAB2 with node-red on linux laptop
                GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
                GW: Arduino Mega, RFLink 433Mhz

                TheoLT 1 Reply Last reply
                0
                • D dakipro

                  are you using domoticz as well?
                  I've read that mqtt is "officially" not supported, but it could work. Anyway, I am looking forward to your presentation :)

                  TheoLT Offline
                  TheoLT Offline
                  TheoL
                  Contest Winner
                  wrote on last edited by
                  #28

                  @dakipro I'm using Domoticz as controller as well. I mainly use it as a gateway to all the devices I want to control and defining the scenes I use.

                  I have for instance one scene in my living room for normal lightning. This means there's an additional lamp on which is standing next to the tv (It's actually my gesture controlled MySensors lamp).

                  When I want to watch TV I don't want that additional light to be on. So in my watch tv scene I turn that one off.

                  And I have an additional Scene for turning all lamps in my living room off.

                  Now when I use the domoticz GUI it's some times really slow. Especially when I use my mobile because, I have crappy WiFi. So I just have a MySensors scene controller talking to Domoticz (not MQTT) for controlling the light scenes. Even that one causes instant responses from my lamps in the living room.

                  When I send MQTT commands to Domoticz it's acts instantly. Meaning really fast. Which is the same when I send rest calls to Domoticz.

                  I'm not sure where you've read that MQTT is not supported by Domoticz. I've been using it for more than a half year. But I'm one Domoticz release behind. And it works like a charm. I let Domoticz do the Home Automation and do my IoT stuff through MQTT.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dakipro
                    wrote on last edited by
                    #29

                    Hi @TheoL how is life and hacking? :)
                    I got reminded on this topic when I saw that Domoticz now officially supports the MySensors MQTT Gateway
                    So I was thinking maybe you have some time and material to contribute to the subject, I see there is a lot of people (me first) not really understanding how they could benefit from MQTT protocol. Since you mentioned the presentation/tutorial last time :)
                    Cheers!

                    C: OpenHAB2 with node-red on linux laptop
                    GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
                    GW: Arduino Mega, RFLink 433Mhz

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


                    16

                    Online

                    11.7k

                    Users

                    11.2k

                    Topics

                    113.0k

                    Posts


                    Copyright 2019 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