Virtual device does not update blind position

Hi Community,

I'm new to the forum and hope someone can help me. I use Node-Red V1.2.9 together with IOBroker and the Node-Red-Contrib-Alexa-Home-Skill-Palette v0.1.19.
Below you can see a flow for controlling a roller shutter actuator, which I specify a position with the help of my Alexa and the actuator then moves to it. A percentage value then comes out of the vsh-virtual-device node, which is then converted and passed on to the IObroker. In the IOBroker, it then goes on to a Beckhoff PLC. At the same time, the PLC always sends me the current position of the roller shutter while moving to the position, which I then receive in the node Red and, after a percentage conversion, forward it to the virtual adapter. Unfortunately, Alexa does not notice that anymore. This means that I cannot see the current position of the roller shutter in the Alexa app. Does anyone know whether you have to trigger the injection of the position into the node so that it comes out in the Alexa app? Hopefully, that was understandable. My English is not the best.

[
    {
        "id": "6dc16ca6.d12eb4",
        "type": "tab",
        "label": "Test",
        "disabled": false,
        "info": ""
    },
    {
        "id": "8d69db74.6e2ca8",
        "type": "vsh-virtual-device",
        "z": "6dc16ca6.d12eb4",
        "name": "Rolladen Test",
        "topic": "",
        "connection": "77d797b6.7af5a8",
        "template": "BLINDS",
        "passthrough": true,
        "diff": false,
        "filter": true,
        "x": 660,
        "y": 150,
        "wires": [
            [
                "e6d4cccb.94e47"
            ]
        ]
    },
    {
        "id": "e008aad.0038858",
        "type": "ioBroker out",
        "z": "6dc16ca6.d12eb4",
        "name": "AI_EG_WOZ_ROL_ESSFES_POS_WERT [BYTE]",
        "topic": "beckhoff.0.plc.IOBROKER.AI_EG_WOZ_ROL_ESSFES_POS_WERT",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "POS",
        "role": "",
        "payloadType": "number",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "0",
        "stateMax": "255",
        "x": 1170,
        "y": 90,
        "wires": []
    },
    {
        "id": "e6d4cccb.94e47",
        "type": "range",
        "z": "6dc16ca6.d12eb4",
        "minin": "0",
        "maxin": "100",
        "minout": "0",
        "maxout": "255",
        "action": "scale",
        "round": true,
        "property": "payload.percentage",
        "name": "Value 100 to 255",
        "x": 920,
        "y": 150,
        "wires": [
            [
                "b08fa6b1.069958"
            ]
        ]
    },
    {
        "id": "b08fa6b1.069958",
        "type": "function",
        "z": "6dc16ca6.d12eb4",
        "name": "Percentage percentage to Byte",
        "func": "var myObj, x;\nmyObj = msg.payload;\nx = myObj.percentage;\nmsg.payload = x;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 1170,
        "y": 150,
        "wires": [
            [
                "e008aad.0038858"
            ]
        ]
    },
    {
        "id": "da7b2318.6649a",
        "type": "ioBroker in",
        "z": "6dc16ca6.d12eb4",
        "name": "AO_EG_WOZ_ROL_ESSFES_AKTUELLE_POS [BYTE]",
        "topic": "beckhoff.0.plc.IOBROKER.AO_EG_WOZ_ROL_ESSFES_AKTUELLE_POS",
        "payloadType": "object",
        "onlyack": "",
        "func": "rbe",
        "gap": "",
        "fireOnStart": "false",
        "x": 230,
        "y": 90,
        "wires": [
            [
                "dc721b6d.30e4f8"
            ]
        ]
    },
    {
        "id": "dc721b6d.30e4f8",
        "type": "function",
        "z": "6dc16ca6.d12eb4",
        "name": "Byte to percentage",
        "func": "msg.payload = { 'percentage': msg.payload.val }\nreturn msg;\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 160,
        "y": 150,
        "wires": [
            [
                "3fb0e074.34058"
            ]
        ]
    },
    {
        "id": "3fb0e074.34058",
        "type": "range",
        "z": "6dc16ca6.d12eb4",
        "minin": "0",
        "maxin": "255",
        "minout": "0",
        "maxout": "100",
        "action": "scale",
        "round": true,
        "property": "payload.percentage",
        "name": "Value 255 to 100",
        "x": 380,
        "y": 150,
        "wires": [
            [
                "8d69db74.6e2ca8"
            ]
        ]
    },
    {
        "id": "77d797b6.7af5a8",
        "type": "vsh-connection",
        "name": "blablabla",
        "port": "8883",
        "accessTokenExpiry": "1615449597050",
        "debug": false
    }
]

Thanks in advance.

Sandro

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.