본문 바로가기
  • 개천에서 용나는 걸 보고 싶단 말이지.
My Space/Home Assistant

HomeAssistant 4.0 & 4.1 에서 Local Tuya 오류 임시해결법

by Dyner 2022. 4. 9.

<!doctype html>

Home Assistant 4.0 & 4.1에서 Local Tuya 에러 문제

부푼 기대를 안고(?) 업그레이드를 했으나....돌아오는 건...제길...

역시나 급한대로 해결책이 존재했다.

HomeAssistant 폴더 내의

custom_components/localtuya/const.py 파일을 약간 변경하면 된다.

49번째 줄의

# Platforms in this list must support config flows
PLATFORMS = ["binary_sensor", "cover", "fan", "light", "sensor", "switch"]

를 다음으로 변경하면 된다.

# Platforms in this list must support config flows
PLATFORMS = ["binary_sensor", "cover", "light", "sensor", "switch"]

fan 항목을 제거하는 거니...혹시 Tuay 제품군의 선풍기 환풍기 공기청정기 류는 개발자가 업데이트 해줄 때까지는...OTL....

불행 중 다행히 내 경우에는 cover, switch 류만 이용하고 나머지는 Zigbee2MQTT로 사용하는 지라...운이 좋았다.....

아무래도 다음번에는 Zigbee로 넘어가던가 Sonoff 제품으로 고려해봐야겠다....라지만...과연 넘어가긴 할까 ㅡㅡ;; 이젠 다 귀찮아...

 

아 본문의 출처는 https://github.com/rospogrigio/localtuya/issues/789의 댓글에서 발췌했다.

현재 Local Tuya 업데이트로 문제 해결됨....