두더지햄 component":"main","capability":"airConditionerFanMode","attribute":"airConditionerFanMode","trigger":"Never"}: invalid attribute 이 오류로 바람세기 못했던 사람입니다

a15714ab041eb360be3335625683746f0253452fd6a6e989d73667f89f14cd6ee650d2823df1ebfc00bbd09b

두더지 햄이 말씀하신 supportedAcFanModes 찾았습니다


06bcdb27eae639aa658084e54487746bb27b6758f6e182f1e2ca5643d22bf9f1a82f1fe0bf6967e17c6847

삼성 창문형 에어컨 23년도 사용하고 있습니다



24b0d121e09c28a8699fe8b115ef046c64f9294e


작동하는 최종 코드입니다 두더지햄

[

  {

    "if": {

      "equals": {

        "left": { "string": "pushed" },

        "right": { "device": { "devices": ["YOUR_BUTTON_DEVICE_ID"], "component": "Left", "capability": "button", "attribute": "button", "trigger": "Always" } }

      },

      "then": [

        {

          "if": {

            "equals": {

              "left": { "device": { "devices": ["YOUR_AC_DEVICE_ID"], "component": "main", "capability": "airConditionerFanMode", "attribute": "fanMode", "trigger": "Never" } },

              "right": { "string": "2" }

            },

            "then": [{ "command": { "devices": ["YOUR_AC_DEVICE_ID"], "commands": [{ "component": "main", "capability": "airConditionerFanMode", "command": "setFanMode", "arguments": [{ "string": "1" }] }] } }]

          }

        },

        {

          "if": {

            "equals": {

              "left": { "device": { "devices": ["YOUR_AC_DEVICE_ID"], "component": "main", "capability": "airConditionerFanMode", "attribute": "fanMode", "trigger": "Never" } },

              "right": { "string": "3" }

            },

            "then": [{ "command": { "devices": ["YOUR_AC_DEVICE_ID"], "commands": [{ "component": "main", "capability": "airConditionerFanMode", "command": "setFanMode", "arguments": [{ "string": "2" }] }] } }]

          }

        },

        {

          "if": {

            "equals": {

              "left": { "device": { "devices": ["YOUR_AC_DEVICE_ID"], "component": "main", "capability": "airConditionerFanMode", "attribute": "fanMode", "trigger": "Never" } },

              "right": { "string": "4" }

            },

            "then": [{ "command": { "devices": ["YOUR_AC_DEVICE_ID"], "commands": [{ "component": "main", "capability": "airConditionerFanMode", "command": "setFanMode", "arguments": [{ "string": "3" }] }] } }]

          }

        },

        {

          "if": {

            "equals": {

              "left": { "device": { "devices": ["YOUR_AC_DEVICE_ID"], "component": "main", "capability": "airConditionerFanMode", "attribute": "fanMode", "trigger": "Never" } },

              "right": { "string": "5" }

            },

            "then": [{ "command": { "devices": ["YOUR_AC_DEVICE_ID"], "commands": [{ "component": "main", "capability": "airConditionerFanMode", "command": "setFanMode", "arguments": [{ "string": "4" }] }] } }]

          }

        }

      ]

    }

  }

]