Skip to content

Switch node not accepting string as output #850

Description

@koos147

I used the script to install "4.0.9: Maintenance Release" on a raspberry pi 2 B
After this i installed the "node-red-dashboard 3.6.5" from within the web gui.

When i add a switch its default is

Image

I will change this to the string 1 and 0 (not a number)
Image
When i save this and re-open the node. it shows

Image

As a workaround i tried to export the node config

When importing this the value looks good, but the node isn't working.

[
    {
        "id": "5cf2bec14b183a34",
        "type": "ui_switch",
        "z": "e2202e2fe14edf22",
        "name": "Gasfornuis",
        "label": "Gasfornuis",
        "tooltip": "Keuken",
        "group": "1dfeeb7fba195853",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": false,
        "decouple": "true",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": 1,
        "onvalueType": "str",
        "onicon": "",
        "oncolor": "",
        "offvalue": "0",
        "offvalueType": "str",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 630,
        "y": 140,
        "wires": [
            [
                "da3e82555b386235"
            ]
        ]
    }
   ]

For the people reading dutch... no it is simply the light above the gas stove. not the stove itself.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions