Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. [gelöst] Volume up/down

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Volume up/down

    This topic has been deleted. Only users with topic management privileges can see it.
    • Aphofis
      Aphofis last edited by Aphofis

      Gibt es eine Möglichkeit einen Datenpunkt per cklick auf zwei VIS Button die Volume +1 und -1 zu steuern !? die Volume läuft in dB.
      Ich weiß nicht, wie man das realisieren kann

      1 Reply Last reply Reply Quote 0
      • OliverIO
        OliverIO last edited by OliverIO

        @aphofis

        ja mit dem widget jqui button state un ein bisschen binding
        hier für den datenpunkt wert, der mit typ nummer angelegt wurde

        [{"tpl":"tplJquiButtonState","data":{"oid":"0_userdata.0.wert","g_fixed":true,"g_visibility":false,"g_css_font_text":true,"g_css_background":true,"g_css_shadow_padding":true,"g_css_border":true,"g_gestures":false,"g_signals":false,"g_last_change":false,"buttontext":"+1 db","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"value":"{0_userdata.0.wert;+(1)}","visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","class":"mytime","html_append":""},"style":{"left":"491px","top":"138px","color":"white","font-weight":"lighter","font-size":"x-small","background":"","border-width":"2px","border-style":"solid","border-color":"white","border-radius":"10px","background-color":"#303030 !important","box-shadow":"2px 2px 3px rgba(20, 20, 20, 50)","width":"55px","height":"23px"},"widgetSet":"jqui"}]
        

        1 Reply Last reply Reply Quote 0
        • Aphofis
          Aphofis last edited by

          @oliverio sagte in Volume up/down:

          jqui button state

          schon mal cool aber welcher ist jqui

          P OliverIO 2 Replies Last reply Reply Quote 0
          • P
            peterfido @Aphofis last edited by

            @aphofis Passend zum Thema Node-Red:

            [
                {
                    "id": "bb2b547896584a3c",
                    "type": "tab",
                    "label": "Flow 7",
                    "disabled": false,
                    "info": "",
                    "env": []
                },
                {
                    "id": "b9029988cca28095",
                    "type": "inject",
                    "z": "bb2b547896584a3c",
                    "name": "Datenpunkt anlegen",
                    "props": [
                        {
                            "p": "payload"
                        },
                        {
                            "p": "topic",
                            "vt": "str"
                        }
                    ],
                    "repeat": "",
                    "crontab": "",
                    "once": false,
                    "onceDelay": 0.1,
                    "topic": "0_userdata.0.GordonX-Home.Multimedia.Wz_Lautst",
                    "payload": "1",
                    "payloadType": "num",
                    "x": 170,
                    "y": 80,
                    "wires": [
                        [
                            "aa1e6386ec92a4c9"
                        ]
                    ]
                },
                {
                    "id": "aa1e6386ec92a4c9",
                    "type": "ioBroker out",
                    "z": "bb2b547896584a3c",
                    "name": "",
                    "topic": "",
                    "ack": "false",
                    "autoCreate": "true",
                    "stateName": "",
                    "role": "",
                    "payloadType": "number",
                    "readonly": "",
                    "stateUnit": "",
                    "stateMin": "",
                    "stateMax": "",
                    "x": 1160,
                    "y": 180,
                    "wires": []
                },
                {
                    "id": "d3112ead64ce77d1",
                    "type": "inject",
                    "z": "bb2b547896584a3c",
                    "name": "Leiser",
                    "props": [
                        {
                            "p": "wert",
                            "v": "-1",
                            "vt": "num"
                        },
                        {
                            "p": "topic",
                            "vt": "str"
                        }
                    ],
                    "repeat": "",
                    "crontab": "",
                    "once": false,
                    "onceDelay": 0.1,
                    "topic": "0_userdata.0.GordonX-Home.Multimedia.Wz_Lautst",
                    "x": 130,
                    "y": 240,
                    "wires": [
                        [
                            "49fc06f0f5138508"
                        ]
                    ]
                },
                {
                    "id": "851dd15bc79ab9b7",
                    "type": "inject",
                    "z": "bb2b547896584a3c",
                    "name": "Lauter",
                    "props": [
                        {
                            "p": "wert",
                            "v": "1",
                            "vt": "num"
                        },
                        {
                            "p": "topic",
                            "vt": "str"
                        }
                    ],
                    "repeat": "",
                    "crontab": "",
                    "once": false,
                    "onceDelay": 0.1,
                    "topic": "0_userdata.0.GordonX-Home.Multimedia.Wz_Lautst",
                    "x": 130,
                    "y": 180,
                    "wires": [
                        [
                            "49fc06f0f5138508"
                        ]
                    ]
                },
                {
                    "id": "49fc06f0f5138508",
                    "type": "ioBroker get",
                    "z": "bb2b547896584a3c",
                    "name": "",
                    "topic": "",
                    "attrname": "payload",
                    "payloadType": "value",
                    "errOnInvalidState": "nothing",
                    "x": 420,
                    "y": 220,
                    "wires": [
                        [
                            "e06b7ab92a45e279"
                        ]
                    ]
                },
                {
                    "id": "f9d19bccd86e141b",
                    "type": "calculator",
                    "z": "bb2b547896584a3c",
                    "name": "",
                    "inputMsgField": "payload",
                    "outputMsgField": "payload",
                    "operation": "inc",
                    "constant": "1",
                    "round": false,
                    "truncate": false,
                    "decimals": 0,
                    "decimals2": 0,
                    "x": 780,
                    "y": 200,
                    "wires": [
                        [
                            "89dfde5ee258875f"
                        ]
                    ]
                },
                {
                    "id": "e06b7ab92a45e279",
                    "type": "switch",
                    "z": "bb2b547896584a3c",
                    "name": "",
                    "property": "wert",
                    "propertyType": "msg",
                    "rules": [
                        {
                            "t": "eq",
                            "v": "1",
                            "vt": "num"
                        },
                        {
                            "t": "eq",
                            "v": "-1",
                            "vt": "num"
                        }
                    ],
                    "checkall": "true",
                    "repair": false,
                    "outputs": 2,
                    "x": 610,
                    "y": 220,
                    "wires": [
                        [
                            "f9d19bccd86e141b"
                        ],
                        [
                            "b455921bd96e4fec"
                        ]
                    ]
                },
                {
                    "id": "b455921bd96e4fec",
                    "type": "calculator",
                    "z": "bb2b547896584a3c",
                    "name": "",
                    "inputMsgField": "payload",
                    "outputMsgField": "payload",
                    "operation": "dec",
                    "constant": "1",
                    "round": false,
                    "truncate": false,
                    "decimals": 0,
                    "decimals2": 0,
                    "x": 790,
                    "y": 260,
                    "wires": [
                        [
                            "89dfde5ee258875f"
                        ]
                    ]
                },
                {
                    "id": "89dfde5ee258875f",
                    "type": "switch",
                    "z": "bb2b547896584a3c",
                    "name": "Begrenzer",
                    "property": "payload",
                    "propertyType": "msg",
                    "rules": [
                        {
                            "t": "btwn",
                            "v": "0",
                            "vt": "num",
                            "v2": "100",
                            "v2t": "num"
                        },
                        {
                            "t": "else"
                        }
                    ],
                    "checkall": "true",
                    "repair": false,
                    "outputs": 2,
                    "x": 970,
                    "y": 220,
                    "wires": [
                        [
                            "aa1e6386ec92a4c9"
                        ],
                        [
                            "a0e716b22b03e8ed"
                        ]
                    ]
                },
                {
                    "id": "a0e716b22b03e8ed",
                    "type": "debug",
                    "z": "bb2b547896584a3c",
                    "name": "debug 2",
                    "active": true,
                    "tosidebar": true,
                    "console": false,
                    "tostatus": false,
                    "complete": "false",
                    "statusVal": "",
                    "statusType": "auto",
                    "x": 1180,
                    "y": 280,
                    "wires": []
                },
                {
                    "id": "9aad546bed69dd79",
                    "type": "status",
                    "z": "bb2b547896584a3c",
                    "name": "",
                    "scope": [
                        "89dfde5ee258875f"
                    ],
                    "x": 820,
                    "y": 360,
                    "wires": [
                        [
                            "a0e716b22b03e8ed"
                        ]
                    ]
                }
            ]
            


            a1bfaa00-304c-4c8a-93e2-e2a5bd663891-image.png

            Aphofis 1 Reply Last reply Reply Quote 1
            • arteck
              arteck Developer Most Active last edited by

              materialdesign


              [{"tpl":"tplVis-materialdesign-Button-Adition","data":{"oid":"0_userdata.0.strom.tibber.extra.tibberNutzenManuellHH","g_fixed":false,"g_visibility":true,"g_css_font_text":false,"g_css_background":false,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":"","visibility-groups-action":"hide","buttonStyle":"outlined","vibrateOnMobilDevices":"50","buttontext":" ","textFontFamily":"#mdwTheme:vis-materialdesign.0.fonts.button.default.text","textFontSize":"#mdwTheme:vis-materialdesign.0.fontSizes.button.default.text","mdwButtonPrimaryColor":"red","mdwButtonSecondaryColor":"#mdwTheme:vis-materialdesign.0.colors.button.default.secondary","image":"minus","iconPosition":"left","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"value":"-1","iconHeight":"35","labelWidth":"7","minmax":"0","visibility-oid":""},"style":{"left":"379px","top":"252px","width":"34px","height":"34px","z-index":"5"},"widgetSet":"materialdesign"}]

              2258d9bb-831e-44f1-a1f1-c795817000b3-grafik.png

              1 Reply Last reply Reply Quote 1
              • OliverIO
                OliverIO @Aphofis last edited by

                @aphofis

                ist in vis im standard schon mit dabei
                aad4b01f-a290-4176-9630-a13d14722bff-image.png

                Aphofis 1 Reply Last reply Reply Quote 1
                • Aphofis
                  Aphofis @OliverIO last edited by

                  @oliverio
                  Na da hab ich nicht gesucht ! Dann teste ich das mal

                  1 Reply Last reply Reply Quote 0
                  • Aphofis
                    Aphofis @peterfido last edited by Aphofis

                    @peterfido
                    Hammer ! Es funktioniert perfekt!!
                    Ich danke dir vielmals

                    [
                        {
                            "id": "aa1e6386ec92a4c9",
                            "type": "ioBroker out",
                            "z": "bb2b547896584a3c",
                            "name": "volume",
                            "topic": "denon.0.zoneMain.volume",
                            "ack": "false",
                            "autoCreate": "true",
                            "stateName": "",
                            "role": "",
                            "payloadType": "number",
                            "readonly": "",
                            "stateUnit": "",
                            "stateMin": "",
                            "stateMax": "",
                            "x": 1020,
                            "y": 180,
                            "wires": []
                        },
                        {
                            "id": "d3112ead64ce77d1",
                            "type": "inject",
                            "z": "bb2b547896584a3c",
                            "name": "Leiser",
                            "props": [
                                {
                                    "p": "wert",
                                    "v": "-1",
                                    "vt": "num"
                                },
                                {
                                    "p": "topic",
                                    "vt": "str"
                                }
                            ],
                            "repeat": "",
                            "crontab": "",
                            "once": false,
                            "onceDelay": 0.1,
                            "topic": "denon.0.zoneMain.volumeDown",
                            "x": 210,
                            "y": 260,
                            "wires": [
                                [
                                    "49fc06f0f5138508"
                                ]
                            ]
                        },
                        {
                            "id": "851dd15bc79ab9b7",
                            "type": "inject",
                            "z": "bb2b547896584a3c",
                            "name": "Lauter",
                            "props": [
                                {
                                    "p": "wert",
                                    "v": "1",
                                    "vt": "num"
                                },
                                {
                                    "p": "topic",
                                    "vt": "str"
                                }
                            ],
                            "repeat": "",
                            "crontab": "",
                            "once": false,
                            "onceDelay": 0.1,
                            "topic": "denon.0.zoneMain.volumeUp",
                            "x": 210,
                            "y": 200,
                            "wires": [
                                [
                                    "49fc06f0f5138508"
                                ]
                            ]
                        },
                        {
                            "id": "49fc06f0f5138508",
                            "type": "ioBroker get",
                            "z": "bb2b547896584a3c",
                            "name": "volume",
                            "topic": "denon.0.zoneMain.volume",
                            "attrname": "payload",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 400,
                            "y": 220,
                            "wires": [
                                [
                                    "e06b7ab92a45e279"
                                ]
                            ]
                        },
                        {
                            "id": "f9d19bccd86e141b",
                            "type": "calculator",
                            "z": "bb2b547896584a3c",
                            "name": "",
                            "inputMsgField": "payload",
                            "outputMsgField": "payload",
                            "operation": "inc",
                            "constant": "1",
                            "round": false,
                            "truncate": false,
                            "decimals": 0,
                            "decimals2": 0,
                            "x": 680,
                            "y": 200,
                            "wires": [
                                [
                                    "89dfde5ee258875f"
                                ]
                            ]
                        },
                        {
                            "id": "e06b7ab92a45e279",
                            "type": "switch",
                            "z": "bb2b547896584a3c",
                            "name": "",
                            "property": "wert",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "eq",
                                    "v": "1",
                                    "vt": "num"
                                },
                                {
                                    "t": "eq",
                                    "v": "-1",
                                    "vt": "num"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 530,
                            "y": 220,
                            "wires": [
                                [
                                    "f9d19bccd86e141b"
                                ],
                                [
                                    "b455921bd96e4fec"
                                ]
                            ]
                        },
                        {
                            "id": "b455921bd96e4fec",
                            "type": "calculator",
                            "z": "bb2b547896584a3c",
                            "name": "",
                            "inputMsgField": "payload",
                            "outputMsgField": "payload",
                            "operation": "dec",
                            "constant": "1",
                            "round": false,
                            "truncate": false,
                            "decimals": 0,
                            "decimals2": 0,
                            "x": 670,
                            "y": 240,
                            "wires": [
                                [
                                    "89dfde5ee258875f"
                                ]
                            ]
                        },
                        {
                            "id": "89dfde5ee258875f",
                            "type": "switch",
                            "z": "bb2b547896584a3c",
                            "name": "Begrenzer",
                            "property": "payload",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "btwn",
                                    "v": "0",
                                    "vt": "num",
                                    "v2": "100",
                                    "v2t": "num"
                                },
                                {
                                    "t": "else"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 850,
                            "y": 220,
                            "wires": [
                                [
                                    "aa1e6386ec92a4c9"
                                ],
                                [
                                    "a0e716b22b03e8ed"
                                ]
                            ]
                        },
                        {
                            "id": "a0e716b22b03e8ed",
                            "type": "debug",
                            "z": "bb2b547896584a3c",
                            "name": "Denon Volume",
                            "active": true,
                            "tosidebar": true,
                            "console": false,
                            "tostatus": false,
                            "complete": "payload",
                            "targetType": "msg",
                            "statusVal": "",
                            "statusType": "auto",
                            "x": 1040,
                            "y": 240,
                            "wires": []
                        },
                        {
                            "id": "9aad546bed69dd79",
                            "type": "status",
                            "z": "bb2b547896584a3c",
                            "name": "",
                            "scope": [
                                "89dfde5ee258875f"
                            ],
                            "x": 860,
                            "y": 280,
                            "wires": [
                                [
                                    "a0e716b22b03e8ed"
                                ]
                            ]
                        },
                        {
                            "id": "cb6e8fedb1ea0d1c",
                            "type": "ioBroker in",
                            "z": "bb2b547896584a3c",
                            "name": "Volume",
                            "attrname": "wert",
                            "topic": "0_userdata.0.GordonX-Home.Multimedia.Denon_Volume",
                            "payloadType": "value",
                            "onlyack": "",
                            "func": "all",
                            "gap": "",
                            "fireOnStart": "false",
                            "outFormat": "MQTT",
                            "x": 210,
                            "y": 140,
                            "wires": [
                                [
                                    "49fc06f0f5138508"
                                ]
                            ]
                        },
                        {
                            "id": "26b003aebac0a118",
                            "type": "inject",
                            "z": "bb2b547896584a3c",
                            "name": "Datenpunkt anlegen",
                            "props": [
                                {
                                    "p": "payload"
                                },
                                {
                                    "p": "topic",
                                    "vt": "str"
                                }
                            ],
                            "repeat": "",
                            "crontab": "",
                            "once": false,
                            "onceDelay": 0.1,
                            "topic": "0_userdata.0.GordonX-Home.Multimedia.Denon_Volume",
                            "payload": "50",
                            "payloadType": "num",
                            "x": 830,
                            "y": 160,
                            "wires": [
                                [
                                    "aa1e6386ec92a4c9"
                                ]
                            ]
                        }
                    ]
                    


                    Screenshot 2025-06-09 135806.png

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    863
                    Online

                    31.9k
                    Users

                    80.2k
                    Topics

                    1.3m
                    Posts

                    4
                    8
                    196
                    Loading More Posts
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes
                    Reply
                    • Reply as topic
                    Log in to reply
                    Community
                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                    The ioBroker Community 2014-2023
                    logo