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. Development
  3. SceneController with Text possible?

SceneController with Text possible?

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 1.2k Views 2 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.
  • cyberkovC Offline
    cyberkovC Offline
    cyberkov
    wrote on last edited by
    #1

    Hello!

    I started with mysensors a few weeks ago to complement my openHab setup, which is working quite well yet. The thing that I'm missing is some kind of status display, to show things like State of the Washing machine (a variable in Homematic CCU) or Security Status (Number Item in openHAB) etc.

    The scene controller seemed like a perfect match for this task and I built it now and in the default setup its working great. The only thing I didn't find was how to reply to the time requests from the controller and this is also where my problem starts.

    Can anyone point me to code snippets or information on how I could actually send Text to the sensors? I saw that there might be some limitations on transmission speed, but I wouldn't care if it takes 1 or 5 seconds to show a string.
    I'm still beginning with Arduino and C (i know other languages so it should be doable to get it to compile :) ) but I'm thinking about the following use cases:

    Scene Controller shows buttons like it does now but when you press it, it behaves like a switch (changes color for instance). The initial state could be requested from openHab.
    openhab posts status messages to mosqitto ( i think a broadcast is not practical, so "/sensors/ID/Text foobar" looks better to me).

    The gateway has been implemented through the PerlMQTTGateway.
    I had a look at the the RTC and Display Sketch but it didn't show how you would answer time requests on the network.
    There was also a post on Time and MQTT but answer was not very helpful in that matter. As far as i can see in the PerlMQTTGateway code there is a send functionality.

    Sorry for that wall of text, I hope someone can help me :)

    1 Reply Last reply
    0
    • cyberkovC Offline
      cyberkovC Offline
      cyberkov
      wrote on last edited by
      #2

      In openHab i would implement something like that:

      String    Notify_Scenecontroller            (Notification)    { mqtt=">[mosquitto:/mySensors/20/1/info:state:*:default]" }
      

      and a rule like

      rule "Washing machine done"
          Item UG_Wirtschaftsraum_CCU2_Waschmaschine changed to OFF 
      then
          logInfo("Task_Waschmaschine", "Waschmaschine ist fertig")
          Notify_Scenecontroller.postUpdate("Waschmaschine ist fertig.")
      end
      
      1 Reply Last reply
      0
      • BulldogLowellB Offline
        BulldogLowellB Offline
        BulldogLowell
        Contest Winner
        wrote on last edited by
        #3

        I don't have any experience with your controller, but it is possible:

        like this or that

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


        18

        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