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. Domoticz
  4. Scene controller: how to do it bidirectional

Scene controller: how to do it bidirectional

Scheduled Pinned Locked Moved Domoticz
9 Posts 3 Posters 2.5k Views 5 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.
  • J Offline
    J Offline
    Jan Gatzke
    wrote on last edited by
    #1

    I have built a scene controller based on an sonoff touch switch. When I do a long press it cycles through the scenes. The devices created in domoticz are used as activation devices for several scenes. (color / brightness of my TV back light) So fa so good. Sometimes I use my smartphone to activate a scene. After this domoticz and the scene controller are out of sync. How do I update it's state? Domoticz does not send a status back to the activation device, right? So what's the best way? Lua?

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      who is the scene controller?

      J 1 Reply Last reply
      0
      • gohanG gohan

        who is the scene controller?

        J Offline
        J Offline
        Jan Gatzke
        wrote on last edited by
        #3

        @gohan The sonoff touch switch. (Based on esp8266)

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          but why aren't you configuring the scenes in Domoticz?

          J 1 Reply Last reply
          0
          • gohanG gohan

            but why aren't you configuring the scenes in Domoticz?

            J Offline
            J Offline
            Jan Gatzke
            wrote on last edited by
            #5

            @gohan I do! The scene controller activates domoticz scenes. Like this one: https://www.mysensors.org/build/scene_controller

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #6

              so do you have a screen that goes out of sync when you change the scene from domoticz directly, correct? If so I'd say you add another child id and present something that can receive an integer value from domoticz that is going to update the scene on the screen; then add in the scene the instruction to send the scene number to the sonoff. Sorry I can't be very specific as I never worked on this kind of setup.

              1 Reply Last reply
              0
              • rozpruwaczR Offline
                rozpruwaczR Offline
                rozpruwacz
                wrote on last edited by rozpruwacz
                #7

                I would thing about the design, is it realy needed to show currently selected scene on the scene controller ? This makes the information redundant and therefore more prone to such errors.

                1 Reply Last reply
                1
                • gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #8

                  that is the point of a display, to show information but if info is wrong it is missing the purpose :)

                  1 Reply Last reply
                  0
                  • rozpruwaczR Offline
                    rozpruwaczR Offline
                    rozpruwacz
                    wrote on last edited by
                    #9

                    I would argue about that :), the display can be used as a very flexible control panel without any state. This simplifies things a lot. I'm just sharing my expirience, it may be just not worth the effort :)

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


                    13

                    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