@m-gans you can try to use this. It is not working over mqtt so you can leave shell cloud turned on.
[
{
"id": "c4e589e09355c27d",
"type": "shelly-cloud",
"z": "d724ef4f9c579ce1",
"server": "33eca59cc5addf74",
"description": "",
"outputs": 1,
"x": 690,
"y": 700,
"wires": [
[
"42afdd0863c670c9",
"28bd90bf0488a3bc"
]
]
},
{
"id": "28bd90bf0488a3bc",
"type": "shelly-gen1",
"z": "d724ef4f9c579ce1",
"hostname": "10.0.1.34",
"description": "",
"mode": "polling",
"server": "033a6e9acf499057",
"outputmode": "event",
"uploadretryinterval": 5000,
"pollinginterval": 5000,
"pollstatus": false,
"getstatusoncommand": true,
"devicetype": "Dimmer",
"devicetypemustmatchexactly": true,
"outputs": 1,
"x": 900,
"y": 640,
"wires": [
[]
]
},
{
"id": "42afdd0863c670c9",
"type": "debug",
"z": "d724ef4f9c579ce1",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 900,
"y": 760,
"wires": []
},
{
"id": "aeb4c2cae80da838",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "on",
"func": "msg.payload = {\n on:true\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 500,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "cb63debaf7f8cc7a",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "off",
"func": "msg.payload = {\n on:false\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 540,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "a2c586bfef493ba4",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Turn On",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 500,
"wires": [
[
"aeb4c2cae80da838"
]
]
},
{
"id": "aa0ecc89becb52b6",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Turn Off",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 540,
"wires": [
[
"cb63debaf7f8cc7a"
]
]
},
{
"id": "2cf86b714691d6aa",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Poll Status",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "str",
"x": 120,
"y": 440,
"wires": [
[]
]
},
{
"id": "3340ffcb8fc86c54",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "toggle",
"func": "msg.payload = {\n turn:\"toggle\"\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 580,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "0ea0fceb5bc1b8f8",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Toggle",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 110,
"y": 580,
"wires": [
[
"3340ffcb8fc86c54"
]
]
},
{
"id": "e2e90ad3b39f30fb",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "brightness 100%",
"func": "msg.payload = {\nbrightness: 100\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 310,
"y": 620,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "5cd3246ee54df257",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Brightness",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 620,
"wires": [
[
"e2e90ad3b39f30fb"
]
]
},
{
"id": "bbfe7de807db8d9d",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "brightness 25%",
"func": "msg.payload = {\nbrightness: 25\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 300,
"y": 660,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "c3dabccd82633861",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Brightness",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 660,
"wires": [
[
"bbfe7de807db8d9d"
]
]
},
{
"id": "784a23f5f04fe49d",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "turn on & set brightness 60%",
"func": "msg.payload = {\n on : true,\n brightness: 60\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 340,
"y": 700,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "84b0058013cd5e99",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Combined",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 700,
"wires": [
[
"784a23f5f04fe49d"
]
]
},
{
"id": "cde543a45872eba4",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "on 2s",
"func": "msg.payload = {\n on:true,\n brightness: 100,\n transition: 1000, // optional 0..5000ms\n timer: 2\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 740,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "21765d5065807b6a",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "up 10%",
"func": "msg.payload = {\n dim : 'up',\n step : 10, // %\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 280,
"y": 780,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "f23c3049caf67f07",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Turn On",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 740,
"wires": [
[
"cde543a45872eba4"
]
]
},
{
"id": "70d0d15752323197",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Dim Up",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 110,
"y": 780,
"wires": [
[
"21765d5065807b6a"
]
]
},
{
"id": "dcd652864f8a15d5",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "down 10%",
"func": "msg.payload = {\n dim : 'down',\n step : 10, // %\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 290,
"y": 820,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "828232e21c455142",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Dim Down",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 820,
"wires": [
[
"dcd652864f8a15d5"
]
]
},
{
"id": "4d828a1702a46719",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "stop",
"func": "msg.payload = {\n dim : 'stop',\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 860,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "a8a4fae7ed7cb40c",
"type": "inject",
"z": "d724ef4f9c579ce1",
"name": "Dim Stop",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 860,
"wires": [
[
"4d828a1702a46719"
]
]
},
{
"id": "775474fc432399fe",
"type": "ui_slider",
"z": "d724ef4f9c579ce1",
"name": "",
"label": "Svijetlo boravak",
"tooltip": "",
"group": "d5e8a876913ae91e",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"outs": "end",
"topic": "payload",
"topicType": "msg",
"min": "1",
"max": "100",
"step": "1",
"className": "",
"x": 120,
"y": 360,
"wires": [
[
"be8c892c4ecbe444"
]
]
},
{
"id": "be8c892c4ecbe444",
"type": "function",
"z": "d724ef4f9c579ce1",
"name": "set brightness and turn on",
"func": "msg.payload = {\n on : true,\n brightness: msg.payload\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 370,
"y": 360,
"wires": [
[
"c4e589e09355c27d"
]
]
},
{
"id": "611ce15e1152fcb8",
"type": "ui_button",
"z": "d724ef4f9c579ce1",
"name": "",
"group": "d5e8a876913ae91e",
"order": 2,
"width": "3",
"height": "1",
"passthru": false,
"label": "Upali",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "",
"payloadType": "date",
"topic": "topic",
"topicType": "msg",
"x": 90,
"y": 220,
"wires": [
[
"aeb4c2cae80da838"
]
]
},
{
"id": "dda55d360731af0b",
"type": "ui_button",
"z": "d724ef4f9c579ce1",
"name": "",
"group": "d5e8a876913ae91e",
"order": 2,
"width": "3",
"height": "1",
"passthru": false,
"label": "Ugasi",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "",
"payloadType": "date",
"topic": "topic",
"topicType": "msg",
"x": 90,
"y": 260,
"wires": [
[
"cb63debaf7f8cc7a"
]
]
},
{
"id": "33eca59cc5addf74",
"type": "shelly-cloud-server",
"description": ""
},
{
"id": "033a6e9acf499057",
"type": "shelly-gen1-server",
"port": "20001",
"hostname": "aaa",
"hostip": ""
},
{
"id": "d5e8a876913ae91e",
"type": "ui_group",
"name": "Svjetlo boravak",
"tab": "35399c96328c3aa8",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "35399c96328c3aa8",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]