Sonos4loxone T2Q Variables

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    Sonos4loxone T2Q Variables

    I'm looking for a way to add variables in the T2S.
    For example: Hi "name", welcome home. It is "XX"°C in the living room.
    How can I do that? Can someone make a screenshot perhaps in the Loxone config? Regular preset text works fine already :-)
  • hme0354
    MS Profi
    • 06.07.2019
    • 969

    #2
    maybe you can use 2 status linked to each other
    Smarthome: 1x Miniserver Gen. 2, 3x Relay Extensions, 1x Tree Extension, 1x DI-Extension, 1x Air Base Extension, 8x RGBW Tree Dimmer, 9x Touch-Tree, 1x Nano DI Tree, 10x Tree BWM
    Technik: IDM Aero SLM 3-11 mit HGL, MS4H mit 9 Zonen, 2x Loxberry, 2x RPI für Anzeige, Doorbird, Froggit WH2600, POE+ System für Peripherie, Gedad Luftgütesensoren, Deconz (Bridge + 2x BWM + 2x RGBW + 5 Smartplug)

    Kommentar

    • Gast

      #3
      Okay, but I don't know how it works at all (with one variable to start). Isn't there an example?

      Kommentar

      • hme0354
        MS Profi
        • 06.07.2019
        • 969

        #4
        what input signals do you have? e.g. start signal, names, temperature
        Smarthome: 1x Miniserver Gen. 2, 3x Relay Extensions, 1x Tree Extension, 1x DI-Extension, 1x Air Base Extension, 8x RGBW Tree Dimmer, 9x Touch-Tree, 1x Nano DI Tree, 10x Tree BWM
        Technik: IDM Aero SLM 3-11 mit HGL, MS4H mit 9 Zonen, 2x Loxberry, 2x RPI für Anzeige, Doorbird, Froggit WH2600, POE+ System für Peripherie, Gedad Luftgütesensoren, Deconz (Bridge + 2x BWM + 2x RGBW + 5 Smartplug)

        Kommentar

        • Gast

          #5
          I would like to start with text (name, based on phone ping) and temperature from Loxone touch.

          Kommentar

          • hme0354
            MS Profi
            • 06.07.2019
            • 969

            #6
            ok, how much person?
            Smarthome: 1x Miniserver Gen. 2, 3x Relay Extensions, 1x Tree Extension, 1x DI-Extension, 1x Air Base Extension, 8x RGBW Tree Dimmer, 9x Touch-Tree, 1x Nano DI Tree, 10x Tree BWM
            Technik: IDM Aero SLM 3-11 mit HGL, MS4H mit 9 Zonen, 2x Loxberry, 2x RPI für Anzeige, Doorbird, Froggit WH2600, POE+ System für Peripherie, Gedad Luftgütesensoren, Deconz (Bridge + 2x BWM + 2x RGBW + 5 Smartplug)

            Kommentar

            • Gast

              #7
              2 to begin

              Kommentar

              • hme0354
                MS Profi
                • 06.07.2019
                • 969

                #8
                That is how I would do it for only 2 person. If you have more than three you have to cascade more status blocks.
                Smarthome: 1x Miniserver Gen. 2, 3x Relay Extensions, 1x Tree Extension, 1x DI-Extension, 1x Air Base Extension, 8x RGBW Tree Dimmer, 9x Touch-Tree, 1x Nano DI Tree, 10x Tree BWM
                Technik: IDM Aero SLM 3-11 mit HGL, MS4H mit 9 Zonen, 2x Loxberry, 2x RPI für Anzeige, Doorbird, Froggit WH2600, POE+ System für Peripherie, Gedad Luftgütesensoren, Deconz (Bridge + 2x BWM + 2x RGBW + 5 Smartplug)

                Kommentar

                • Christian Fenzl
                  Lebende Foren Legende
                  • 31.08.2015
                  • 11234

                  #9
                  As you already have a LoxBerry, this is a phantastic usecase for LoxBerry XL.
                  See the basic example on the XL main wiki page: https://www.loxwiki.eu/display/LOXBE...EXtended+Logic
                  This is the way how to stick together multiple variables in a string.

                  Currently, you send the text from the Miniserver to Sonos4Lox by a Virtual HTTP Output like
                  /plugins/sonos4lox/index.php?zone=DEINE_ZONE&action=say&text=hallo. dies ist ein test

                  With LoxBerry XL, you would call your XL script by a Virtual HTTP Command
                  /XL/user/welcomehome.php
                  Inside of your welcomehome.php script, you fetch all required data from the Miniserver (e.g. $ms1->outdoor_temperature ...) and can directly send the string to the Sonos4Loxone plugin:
                  PHP-Code:
                  file_get_contents("http://localhost/plugins/sonos4lox/index.php?zone=DEINE_ZONE&action=say&text=$mywelcometext"); 
                  
                  Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

                  Kommentar

                  • Gast

                    #10
                    Zitat von hme0354
                    That is how I would do it for only 2 person. If you have more than three you have to cascade more status blocks.
                    Nice, thanks!

                    Zitat von Christian Fenzl
                    As you already have a LoxBerry, this is a phantastic usecase for LoxBerry XL.
                    See the basic example on the XL main wiki page: https://www.loxwiki.eu/display/LOXBE...EXtended+Logic
                    This is the way how to stick together multiple variables in a string.

                    Currently, you send the text from the Miniserver to Sonos4Lox by a Virtual HTTP Output like
                    /plugins/sonos4lox/index.php?zone=DEINE_ZONE&action=say&text=hallo. dies ist ein test

                    With LoxBerry XL, you would call your XL script by a Virtual HTTP Command
                    /XL/user/welcomehome.php
                    Inside of your welcomehome.php script, you fetch all required data from the Miniserver (e.g. $ms1->outdoor_temperature ...) and can directly send the string to the Sonos4Loxone plugin:
                    PHP-Code:
                    file_get_contents("http://localhost/plugins/sonos4lox/index.php?zone=DEINE_ZONE&action=say&text=$mywelcometext"); 
                    
                    In German it's not so easy to quickly understand. I do know PHP, but I need more info. But I'm glad this exists for what I understand!

                    Kommentar

                    Lädt...