NodeRed Valeur parasite

Bonjour,
Je rencontre un soucis dans node red. J’utilise un « call service » qui retourne une valeur dans une entrée « input_number » pour retourner la valeur, j’utilise le champ « Data » avec un jsonata:

{"value": $.payload}

Hors, cela perturbe un autre input_number que je renseigne depuis un autre flow


image

Je vous joint le flow:

[
    {
        "id": "69539e27a828b993",
        "type": "group",
        "z": "8e6e60e0a5ebb824",
        "style": {
            "stroke": "#999999",
            "stroke-opacity": "1",
            "fill": "none",
            "fill-opacity": "1",
            "label": true,
            "label-position": "nw",
            "color": "#a4a4a4"
        },
        "nodes": [
            "ba0cd25d0d761c73",
            "56b9563c430c8c5f",
            "ac89b82cdebba6fe",
            "0a35b48019d8067c",
            "db274a5f2daa9467",
            "fb926825df79e687",
            "c8eaa17de9dd9d2b",
            "fff44738210b4d02",
            "b683d8ee82ea4e91",
            "24bf5d9017e63899",
            "1c42093d49048d7b",
            "3f8c1a2b2ab3a67d",
            "6303061f43eabd47",
            "758317247d26797b",
            "eef6e36426b280dd"
        ],
        "x": 134,
        "y": 799,
        "w": 1372,
        "h": 522
    },
    {
        "id": "ba0cd25d0d761c73",
        "type": "inject",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "TT les min",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "60",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 250,
        "y": 900,
        "wires": [
            [
                "56b9563c430c8c5f",
                "ac89b82cdebba6fe",
                "758317247d26797b"
            ]
        ]
    },
    {
        "id": "56b9563c430c8c5f",
        "type": "api-current-state",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "PV_Conso inst",
        "server": "9bf5a907952a79de",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "sensor.0x00158d000952036a_papp",
        "state_type": "num",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 440,
        "y": 900,
        "wires": [
            [
                "0a35b48019d8067c"
            ]
        ]
    },
    {
        "id": "ac89b82cdebba6fe",
        "type": "api-current-state",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "PV_Prod inst",
        "server": "9bf5a907952a79de",
        "version": 3,
        "outputs": 1,
        "halt_if": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "sensor.envoy_122132004662_current_power_production",
        "state_type": "num",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 440,
        "y": 960,
        "wires": [
            []
        ]
    },
    {
        "id": "0a35b48019d8067c",
        "type": "join",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "Array[1]",
        "mode": "custom",
        "build": "array",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 620,
        "y": 900,
        "wires": [
            [
                "db274a5f2daa9467"
            ]
        ]
    },
    {
        "id": "db274a5f2daa9467",
        "type": "change",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "$soubstr(payload)",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "(payload[1] - payload[0])",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 830,
        "y": 900,
        "wires": [
            [
                "c8eaa17de9dd9d2b"
            ]
        ]
    },
    {
        "id": "fb926825df79e687",
        "type": "comment",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "index surprod du jour",
        "info": "",
        "x": 260,
        "y": 840,
        "wires": []
    },
    {
        "id": "c8eaa17de9dd9d2b",
        "type": "switch",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "Sur ou Sous Prod inst ?",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "gte",
                "v": "0",
                "vt": "num"
            },
            {
                "t": "lt",
                "v": "0",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 310,
        "y": 1220,
        "wires": [
            [
                "3f8c1a2b2ab3a67d",
                "24bf5d9017e63899"
            ],
            [
                "fff44738210b4d02"
            ]
        ]
    },
    {
        "id": "fff44738210b4d02",
        "type": "change",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "Sous Prod alors Valeur = 0",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 320,
        "y": 1280,
        "wires": [
            [
                "24bf5d9017e63899",
                "3f8c1a2b2ab3a67d"
            ]
        ]
    },
    {
        "id": "b683d8ee82ea4e91",
        "type": "change",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "index_SProd",
        "rules": [
            {
                "t": "set",
                "p": "index_SProd",
                "pt": "flow",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1200,
        "y": 1200,
        "wires": [
            [
                "6303061f43eabd47",
                "eef6e36426b280dd"
            ]
        ]
    },
    {
        "id": "24bf5d9017e63899",
        "type": "join",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "Array[1]",
        "mode": "custom",
        "build": "array",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": "\\n",
        "joinerType": "str",
        "accumulate": false,
        "timeout": "",
        "count": "2",
        "reduceRight": false,
        "reduceExp": "",
        "reduceInit": "",
        "reduceInitType": "",
        "reduceFixup": "",
        "x": 820,
        "y": 1200,
        "wires": [
            [
                "1c42093d49048d7b"
            ]
        ]
    },
    {
        "id": "1c42093d49048d7b",
        "type": "change",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "$sum(payload)",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "(payload[1] + payload[0])",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1000,
        "y": 1200,
        "wires": [
            [
                "b683d8ee82ea4e91"
            ]
        ]
    },
    {
        "id": "3f8c1a2b2ab3a67d",
        "type": "change",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "index_SProd",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "index_SProd",
                "tot": "flow"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 620,
        "y": 1280,
        "wires": [
            [
                "24bf5d9017e63899"
            ]
        ]
    },
    {
        "id": "6303061f43eabd47",
        "type": "debug",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "SProd Jour",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 1390,
        "y": 1100,
        "wires": []
    },
    {
        "id": "758317247d26797b",
        "type": "change",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "2800",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 450,
        "y": 1020,
        "wires": [
            [
                "0a35b48019d8067c"
            ]
        ]
    },
    {
        "id": "eef6e36426b280dd",
        "type": "api-call-service",
        "z": "8e6e60e0a5ebb824",
        "g": "69539e27a828b993",
        "name": "SProd Jour",
        "server": "9bf5a907952a79de",
        "version": 5,
        "debugenabled": true,
        "domain": "input_number",
        "service": "set_value",
        "areaId": [
            "cellier"
        ],
        "deviceId": [],
        "entityId": [
            "input_number.index_sprodjour"
        ],
        "data": "{\"value\": $$.payload}",
        "dataType": "jsonata",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 1390,
        "y": 1200,
        "wires": [
            []
        ]
    },
    {
        "id": "9bf5a907952a79de",
        "type": "server",
        "name": "Home Assistant",
        "version": 5,
        "addon": false,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true,
        "heartbeat": false,
        "heartbeatInterval": "30",
        "areaSelector": "friendlyName",
        "deviceSelector": "friendlyName",
        "entitySelector": "friendlyName",
        "statusSeparator": ": ",
        "statusYear": "hidden",
        "statusMonth": "short",
        "statusDay": "numeric",
        "statusHourCycle": "default",
        "statusTimeFormat": "h:m",
        "enableGlobalContextStore": false
    }
]

Si vous avez une idée, je suis preneur. Merci

Je n’avais pas pensé à donner le debug du call service parasité:
image

Salut, Je suis prêts à parier que ton autre input_nunber soit renseigné dans la pièce Cellier !

Bonjour, et merci pour ta réponse. Je te répond YES!
Donc je dois en conclure que mes input_numbers ne doivent pas se trouver dans la même pièce !???

NON, tu as le droit d’avoir plusieurs Input_nubers dans la même pièce.
C’est ton call service qui n’est pas bon.
Du moment où tu renseignes Aréa : Cellier
Tous les input Number qui sont dans le Cellier seront impacter par ton Set Value.
Si tu ne veux avoir une action que sur l’entité index_sprodjour, il faut vider le Aéra de ton call service.
image

Merci, ça fonctionne nikel.
Je ne sais ps pourquoi j’ai touché à ce champ alors que je ne le fais jamais…