[RS485] 월패드를 시리얼포트로 제어하기
담다패드 - 월패드만 있으면 우리집은 이미 스마트홈?!
담다패드 - 월패드만 있으면 우리집은 이미 스마트홈?! 스마트폰, 스마트전구, IoT가전제품, AI스피커 ...... 스마트한 세상에 살고계신 여러분. 월패드가 있는 우리집이 이미 스마트홈 이라는
mscg.kr
피바로 홈센터3 - 월패드(RS485) 연동
피바로 홈센터3 - 월패드(RS485) 연동 홈센터3 개봉기에서 이미 언급했지만 새롭게 스마트홈(혹은 상업공간)을 구축할 예정이거나 기존의 플랫폼에 한계를 느낀다면 홈센터3를 강력 추천. (인테
mscg.kr
준비물
Node.js 가 실행되는 라즈베리파이 등(ex: 아두이노)
USB to RS485
안녕하세요. 랜이입니다.
요즘 아파트는 월패드를 원격제어하는것이 가능하죠.
그러나 폐쇄적인 플랫폼으로 인해 HA, ST 등 다른 플랫폼에 연동하여 자동화를 하는것이 불가능합니다.
이를 해결하기 위한 방법들이 HA korea카페 에 많이 올라와있습니다.
그중 저는 RS485를 이용하여 우리집 월패드(코콤, 힐스테이트)에 적용시켜보았습니다.
(기존에 다른분들이 올려주신 자료를 수정해서 작업했습니다.)
RS485 패킷분석을 통해서 작성된 자료와 그 결과입니다.
[월패드] 코콤 월패드 및 그렉스 환기장치 RS485 패킷
코콤 월패드 RS485 패킷 분석 구조 PREFIX + TYPE + DEVICE + ROOM + COMMAND + VALUE + CheckSum + 0D0D CheckSum8 Modulo 256 = Sum of Bytes % 256 TYPE + DEVICE + ROOM + COMMAND + VALUE (https://www.scada..
mscg.kr
node.js 파일
HA yaml 내용
HA - climate.yaml
- platform: mqtt
name: "Livingroom Thermo"
mode_state_topic: "kocom/livingroom/thermo/state"
mode_command_topic: "kocom/livingroom/thermo/heat_mode/command"
mode_state_template: "{{ value_json.heat_mode }}"
temperature_state_topic: "kocom/livingroom/thermo/state"
temperature_command_topic: "kocom/livingroom/thermo/set_temp/command"
temperature_state_template: "{{ value_json.set_temp }}"
current_temperature_topic: "kocom/livingroom/thermo/state"
current_temperature_template: "{{ value_json.cur_temp }}"
modes:
- "off"
- "away"
- "on"
min_temp: 5
max_temp: 40
retain: true
qos: 0
HA - switchs.yaml
- platform: mqtt
name: livingroom_light1
command_topic: "kocom/livingroom/light/1/command"
state_topic: "kocom/livingroom/light/state"
value_template: "{{ value_json.light1 }}"
payload_on: "on"
payload_off: "off"
qos: 0
retain: true
- platform: mqtt
name: livingroom_light2
command_topic: "kocom/livingroom/light/2/command"
state_topic: "kocom/livingroom/light/state"
value_template: "{{ value_json.light2 }}"
payload_on: "on"
payload_off: "off"
qos: 0
retain: true
- platform: mqtt
name: livingroom_light3
command_topic: "kocom/livingroom/light/3/command"
state_topic: "kocom/livingroom/light/state"
value_template: "{{ value_json.light3 }}"
payload_on: "on"
payload_off: "off"
qos: 0
retain: true