- Home
- Deutsch
- Skripten / Logik
- Node-Red
- [gelöst] Volume up/down
[gelöst] Volume up/down
This topic has been deleted. Only users with topic management privileges can see it.
-
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 -
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"}]
-
-
@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" ] ] } ]
-
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"}]
-
ist in vis im standard schon mit dabei
-
@oliverio
Na da hab ich nicht gesucht ! Dann teste ich das mal -
@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" ] ] } ]