n-andflash / ha_addons Goto Github PK
View Code? Open in Web Editor NEWHomeAssistant용 애드온: 삼성SDS 월패드 RS485 연결
HomeAssistant용 애드온: 삼성SDS 월패드 RS485 연결
안녕하세요.
최근 HA에 입문해서 월패드 애드온을 적용했는데, 애드온이 반복적으로 중단되었다 재실행되고 있습니다.
에러 로그는 아래와 같습니다.
감사합니다.
--- Logging error ---
Traceback (most recent call last):
File "/usr/local/lib/python3.12/logging/init.py", line 1160, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/logging/init.py", line 999, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/logging/init.py", line 703, in format
record.message = record.getMessage()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/logging/init.py", line 392, in getMessage
msg = msg % self.args
~~~~^~~~~~~~~~~
TypeError: not all arguments converted during string formatting
Call stack:
File "/srv/sds_wallpad.py", line 1317, in
serial_loop()
File "/srv/sds_wallpad.py", line 1243, in serial_loop
logger.warning("initiate aggressive send mode!", scan_count)
Message: 'initiate aggressive send mode!'
Arguments: (0,)
14:53:15 WARNING unhandled exception device reports readiness to read but returned no data (device disconnected or multiple access on port?)
14:53:15 WARNING restart addon ... (serial connection lost!)
14:53:17 INFO initialize serial...
14:53:17 INFO initialize mqtt...
14:53:17 INFO start loop ...
14:53:39 INFO running stable...
안녕하세요? 에너지 사용량 구현 관련해서 도움 요청드리고자 합니다.
저는 SHT-7307XM 모델의 월패드 사용 중이며, 본 애드온으로 조명, 보일러까지는 제어하여 사용중이나, 에너지 사용량이 나오지 않아(월패드에는 나옴) 방법을 찾던 중, 아래와 같은 포트를 찾아, Y형 커플러, EE11 등을 연결하여 패킷을 살펴보니
에너지 사용량으로 보이는 부분을 찾기는 찾았습니다(아래참조). 그러나 현재 애드온으로는 검색이 되지 않고, 패킷분석해 놓은 페이지도 살펴보았으나, 형식이 좀 다른 것 같습니다. 이 다음부터는 어떻게 구현해야할지 도움 요청드립니다.
2023-02-17 22:01:11중 A0 75 0F 17 02 02 33 02 00 83 04 00 10 49
-> 17 02가 23년 2월?, 02 33 02가 233.02(전기), 00 83 04가 83.04(가스), 00 10 49가 10.49(수도)
2023-02-17 22:01:19중 A0 75 0F 17 01 04 43 09 01 76 30 00 17 03
-> 17 01가 23년 1월?, 04 43 09가 443.09(전기), 01 76 30이 176.30(가스), 00 17 03이 17.03(수도)
wallpad_dump.log
라즈베리파이4b에 hassOS환경이고 addon으로 설치했습니다
s6-overlay-suexec: fatal: can only run as pid 1
이 에러가 나면서 동작하지않습니다.
제거, 재부팅 후 재설치해봐도 마찬가지입니다
의심되는 부분은 8.2버전이었다가 업데이트를 하니 8버전으로 바뀐뒤 증상이방생한것같습니다.
해결이가능할까요?
ew11로 socket 모드로 구현하여
난방 활용시, lovelace상에서 슬라이더 등을 이용하여 target 온도 설정하여 잘 쓰고 있으나,
자동화를 구현하려고 보니, HVAC on/off만 가능한 것으로 보입니다. set temperature 같은(또는 유사한) entity가 보이지 않습니다.
그런데 또 ha랑 연결된 아이폰 홈킷 자동화로 하면, 정해진 시간에 특정온도로 올리는 것은 가능한데, HA에서 하는 것 보다 자유도가 떨어지네요.
entity에 target온도를 설정할 구문 반영이 가능한지 궁금합니다. (제 질문이 맞는 질문인지 잘 모르겠네요)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
rc = self.loop(timeout, max_packets)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1181, in loop
rc = self.loop_read(max_packets)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1572, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2310, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2936, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3216, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3444, in _handle_on_message
self.on_message(self, self._userdata, message)
File "/srv/sds_wallpad.py", line 731, in mqtt_on_message
mqtt_virtual(topics, payload)
File "/srv/sds_wallpad.py", line 637, in mqtt_virtual
virtual_trigger[device][(trigger, payload)] = time.time()
KeyError: 'entrance'```
ew11로 socket 모드를 활용하고 있습니다만
이상하게 gas는 이것저것 옵션을 활용해보아도 되질 않네요
```serial_mode: socket
entrance_mode: 'off'
wallpad_mode: 'on'
intercom_mode: 'on'```
소켓 모드에서 엘베호출/현관열기가 안된다는 사실이 안타깝습니다만
가스가 안된다는 부분은 보질 못한 것 같아서요
확인 부탁드립니다
필요하신 추가정보가 있으시면 말씀주시기 바랍니다
늘 감사합니다
안녕하세요.
HA에서 SDS 월패드를 사용하기 위해 애드온을 설치하면
아래와 같이 2가지 현상의 로그로 인해 실행이 종료됩니다.
#1 로그파일
2021-03-16 02:23:02 ERROR addon finished!
Traceback (most recent call last):
File "sds.py", line 1218, in
serial_loop()
File "sds.py", line 1120, in serial_loop
packet = header.to_bytes(2, "big") + packet
TypeError: can't concat NoneType to bytes
#2 로그파일
2021-03-16 02:28:00 ERROR addon finished!
Traceback (most recent call last):
File "sds.py", line 1218, in
serial_loop()
File "sds.py", line 1092, in serial_loop
packet += conn.recv(remain)
TypeError: can't concat NoneType to bytes
def recv():
..
if len(self._recv_buf) < count:
return None
해당 라인을 주석처리하면 저런 현상이 발생되지 않네요.
확인 부탁드립니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.