Ha-entity not working?

Hello!
Trying to create a ha-entity switch in Node-RED so i get a switch in HA, do “something”

But, when i turn it on/off in HA, the “Test 2” is turning on/off in Node-RED, but nothing is happening on the output side. Is it not working like i think?

[
    {
        "id": "b4d8375b.b5fcc8",
        "type": "ha-entity",
        "z": "41611a22.1d20d4",
        "name": "Test 2",
        "server": "b0785337.16938",
        "version": 1,
        "debugenabled": false,
        "outputs": 2,
        "entityType": "switch",
        "config": [
            {
                "property": "name",
                "value": "Test 2"
            },
            {
                "property": "device_class",
                "value": ""
            },
            {
                "property": "icon",
                "value": ""
            },
            {
                "property": "unit_of_measurement",
                "value": ""
            }
        ],
        "state": "payload",
        "stateType": "msg",
        "attributes": [],
        "resend": true,
        "outputLocation": "",
        "outputLocationType": "none",
        "inputOverride": "allow",
        "x": 310,
        "y": 240,
        "wires": [
            [
                "f1f99f6.3e7d56",
                "90b9374c.dfa048",
                "c6c2934f.0719d"
            ],
            [
                "f1f99f6.3e7d56",
                "46be7046.9c128",
                "cc562fbd.819c7"
            ]
        ],
        "outputLabels": [
            "on",
            "off"
        ]
    },
    {
        "id": "f1f99f6.3e7d56",
        "type": "debug",
        "z": "41611a22.1d20d4",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 790,
        "y": 220,
        "wires": []
    },
    {
        "id": "46be7046.9c128",
        "type": "api-call-service",
        "z": "41611a22.1d20d4",
        "name": "",
        "server": "b0785337.16938",
        "version": 1,
        "debugenabled": false,
        "service_domain": "switch",
        "service": "turn_off",
        "entityId": "switch.telldus_pcskjerm",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 810,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "90b9374c.dfa048",
        "type": "api-call-service",
        "z": "41611a22.1d20d4",
        "name": "",
        "server": "b0785337.16938",
        "version": 1,
        "debugenabled": false,
        "service_domain": "switch",
        "service": "turn_on",
        "entityId": "switch.telldus_pcskjerm",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 790,
        "y": 160,
        "wires": [
            []
        ]
    },
    {
        "id": "c6c2934f.0719d",
        "type": "api-call-service",
        "z": "41611a22.1d20d4",
        "name": "",
        "server": "b0785337.16938",
        "version": 1,
        "debugenabled": false,
        "service_domain": "switch",
        "service": "turn_on",
        "entityId": "switch.telldus_pc",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 790,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "cc562fbd.819c7",
        "type": "api-call-service",
        "z": "41611a22.1d20d4",
        "name": "",
        "server": "b0785337.16938",
        "version": 1,
        "debugenabled": false,
        "service_domain": "switch",
        "service": "turn_off",
        "entityId": "switch.telldus_pc",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "mustacheAltTags": false,
        "x": 810,
        "y": 340,
        "wires": [
            []
        ]
    },
    {
        "id": "b0785337.16938",
        "type": "server",
        "z": "",
        "name": "Home Assistant",
        "legacy": false,
        "addon": true,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true
    }
]

Fixed like this for now, this may be the correct way:

I noticed the same. Also, I can’ get the input of a ha-entity to work.

The payload I’m injecting is like this: image

My complete flow:

[{"id":"ef8e16ee.ae6df8","type":"ha-entity","z":"bb945dda.a56b2","name":"nrtest","server":"9679e544.6229a8","version":1,"debugenabled":false,"outputs":2,"entityType":"switch","config":[{"property":"name","value":"nrtest"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""}],"state":"payload","stateType":"msg","attributes":[],"resend":true,"outputLocation":"","outputLocationType":"none","inputOverride":"allow","x":390,"y":120,"wires":[[],["625f2034.49ef2"]]},{"id":"ab353f4.07078c","type":"inject","z":"bb945dda.a56b2","name":"","props":[{"p":"payload.state","v":"on","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":180,"y":120,"wires":[["ef8e16ee.ae6df8","94400712.4ba578"]]},{"id":"cefbb5dc.830bd8","type":"inject","z":"bb945dda.a56b2","name":"","props":[{"p":"payload.state","v":"off","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":180,"y":180,"wires":[["ef8e16ee.ae6df8"]]},{"id":"94400712.4ba578","type":"debug","z":"bb945dda.a56b2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":390,"y":60,"wires":[]},{"id":"625f2034.49ef2","type":"debug","z":"bb945dda.a56b2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":120,"wires":[]},{"id":"9679e544.6229a8","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Same problem. I’m turning the switch on from an automation (Service: Switch: Turn on or off) and the NR switch is showing the change but nothing comes out to trigger the next node!
Your solution with the State Change node works for me but we must be missing something.

EDIT: I updated the pallete and the latest Entity Node has a check button - Output on state change. The top outputs when turned on, the bottom outputs when turned off. That does the trick.

Something is definitely wrong with HA in Node Red. When I try to do a Call Service Node (or look at prior ones) as soon as the domain is set (light, switch, etc) the specific device disappears (or is missing in previous nodes. Weird. Not even sure if my flows will work at this point.

Just restarted HA and it seems ok now.