두더지햄 component":"main","capability":"airConditionerFanMode","attribute":"airConditionerFanMode","trigger":"Never"}: invalid attribute 이 오류로 바람세기 못했던 사람입니다
두더지 햄이 말씀하신 supportedAcFanModes 찾았습니다
삼성 창문형 에어컨 23년도 사용하고 있습니다
작동하는 최종 코드입니다 두더지햄
[
{
"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" }] }] } }]
}
}
]
}
}
]
업데이트했다. 룰빌더 들어가서 5단계(1, 2, 3 4, 5) 눌러서 잘 되는지 알려줄래?
component":"main","capability":"airConditionerFanMode","attribute":"airConditionerFanMode","trigger":"Never"}: invalid attribute 형님 똑같이 이 오류 뜨고 안 됩니다 ㅠㅠ
@글쓴 스싱붕이(1.224)
몇번째 줄에서 에러가 발생하는지 확인해볼게.
일단 1,2,3,4,max인 에어컨에 잘 깔리고, 5단계빼고 1,2 3 4단계가 잘작동하는거 보면 코드 자체는 문제가없는거같다.
1. SmartThings Advanced Web App 에 들어가서 에어컨을 누른다.
https://my.smartthings.com/advanced/devices
2.
Attributes에 있는 검색창에서 'fanmode' 라고 친다
3. capability, attribute, value의 내용이 나오게 찍어줘
내 에어컨에서는 airConditionerFanMode의 하위 attribute로
fanMode, supportedAcFanModes, availableAcFanModes가 뜬다.
@두더스마트싱스 형님 제미나이로 1 에어컨의 잘못된 속성명(airConditionerFanMode)을 공식 규격인 fanMode로 수정하여 invalid attribute 오류를 해결했습니다 2 오작동 및 중첩 방지: 5단계 제한 에러를 피하기 위해 구조를 평평하게 폈으며, 한 번에 1단계까지 침하되는 현상을 막기 위해 조건 검사 순서를 역순(2 → 3 → 4 → 5)으로 배치했습니다 이렇게 하니 작동 합니다
@두더스마트싱스 형님 사진도 추가 해놨습니다 본문에
@글쓴 스싱붕이(1.224) 어라 똑같은데 ㅋㅋ여하튼 해결돼서 다행이다. 디바이스 아이디 지우고 전체 코드 올려줄수있어? 해당 방식으로 패치하려고한다.
@두더스마트싱스 두더지 행님 본문에 코드 추가해놨습니다 감사합니다 풍량 조절 달달합니다 스테뷔르로 하고 있는데
@글쓴 스싱붕이(1.224) 나야말로 고마워 이 방식으로 핫픽스 한다