Error on installing a script for case fan control and power button from command line

For double-tap:

[
    {
        "id": "4940cb52.380b64",
        "type": "server-events",
        "z": "7068ac6f.469094",
        "name": "Argon40",
        "server": "e29894fd.1104d8",
        "event_type": "argon40_event",
        "exposeToHomeAssistant": false,
        "haConfig": [
            {
                "property": "name",
                "value": ""
            },
            {
                "property": "icon",
                "value": ""
            }
        ],
        "x": 160,
        "y": 900,
        "wires": [
            [
                "15deb283.8f426d"
            ]
        ]
    },
    {
        "id": "15deb283.8f426d",
        "type": "switch",
        "z": "7068ac6f.469094",
        "name": "Double Tap",
        "property": "payload.event.action",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "double-tap",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 350,
        "y": 960,
        "wires": [
            [
                "3b325481.956c1c"
            ]
        ]
    },
    {
        "id": "3b325481.956c1c",
        "type": "api-call-service",
        "z": "7068ac6f.469094",
        "name": "Host Reboot",
        "server": "e29894fd.1104d8",
        "version": 1,
        "debugenabled": true,
        "service_domain": "hassio",
        "service": "host_reboot",
        "entityId": "",
        "data": "",
        "dataType": "json",
        "mergecontext": "",
        "output_location": "payload",
        "output_location_type": "msg",
        "mustacheAltTags": false,
        "x": 570,
        "y": 1020,
        "wires": [
            []
        ]
    },
    {
        "id": "e29894fd.1104d8",
        "type": "server",
        "name": "Home Assistant",
        "addon": true
    }
]

The above node-red flow works very well. I have been using for 6 months now. I have tried to change the original flow that someone posted to include a sensor that reports from HA the current fan speed. Unfortunately my knowledge is limited. Can anyone help? I can repost the node-red flow export if required

Cheers

Hey guys, I made 2- addons to simplify things. No automations, no Node Red, just 1 addon that enables I2C, and another one that controls the fan.

Enable I2C
You can run this once and then delete it. It’s done.

Argon One Active Cooling Addon
Everything is set in the configuration for first operation, but you can modify the temp values if you want.
image

3 Likes