Code Monkey home page Code Monkey logo

ha_addons's People

Contributors

n-andflash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ha_addons's Issues

반복적인 애드온 재시작!

안녕하세요.
최근 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...

에너지 사용량 구현 관련 도움 요청

HA카페에 packet 덤프, 사진, 설명 등 업데이트 하여 다시 질문올렸습니다.
https://cafe.naver.com/koreassistant/12061

안녕하세요? 에너지 사용량 구현 관련해서 도움 요청드리고자 합니다.
저는 SHT-7307XM 모델의 월패드 사용 중이며, 본 애드온으로 조명, 보일러까지는 제어하여 사용중이나, 에너지 사용량이 나오지 않아(월패드에는 나옴) 방법을 찾던 중, 아래와 같은 포트를 찾아, Y형 커플러, EE11 등을 연결하여 패킷을 살펴보니
KakaoTalk_Photo_2023-02-18-00-31-56

에너지 사용량으로 보이는 부분을 찾기는 찾았습니다(아래참조). 그러나 현재 애드온으로는 검색이 되지 않고, 패킷분석해 놓은 페이지도 살펴보았으나, 형식이 좀 다른 것 같습니다. 이 다음부터는 어떻게 구현해야할지 도움 요청드립니다.

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

checksum fail! b0796128ae, 2e

WARNING checksum fail! b0796128ae, 2e

해당 경고가 발생하여 살펴보니,

image

해당 패킷의 B0796128, AE7... 부분의 패킷이 잘못 잘려지는 것 같습니다. 그럴까요?

s6-overlay-suexec: fatal: can only run as pid 1

라즈베리파이4b에 hassOS환경이고 addon으로 설치했습니다

s6-overlay-suexec: fatal: can only run as pid 1
이 에러가 나면서 동작하지않습니다.
제거, 재부팅 후 재설치해봐도 마찬가지입니다
의심되는 부분은 8.2버전이었다가 업데이트를 하니 8버전으로 바뀐뒤 증상이방생한것같습니다.
해결이가능할까요?

set temperature 구문이 없는지 궁금합니다.

ew11로 socket 모드로 구현하여

  • 조명
  • 난방
    두가지를 활용하고 있습니다.

난방 활용시, lovelace상에서 슬라이더 등을 이용하여 target 온도 설정하여 잘 쓰고 있으나,
자동화를 구현하려고 보니, HVAC on/off만 가능한 것으로 보입니다. set temperature 같은(또는 유사한) entity가 보이지 않습니다.

그런데 또 ha랑 연결된 아이폰 홈킷 자동화로 하면, 정해진 시간에 특정온도로 올리는 것은 가능한데, HA에서 하는 것 보다 자유도가 떨어지네요.

entity에 target온도를 설정할 구문 반영이 가능한지 궁금합니다. (제 질문이 맞는 질문인지 잘 모르겠네요)

KeyError: 'entrance'

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'```

소켓 모드에서 엘베호출/현관열기가 안된다는 사실이 안타깝습니다만
가스가 안된다는 부분은 보질 못한 것 같아서요

확인 부탁드립니다
필요하신 추가정보가 있으시면 말씀주시기 바랍니다

늘 감사합니다

exception 에러가 납니다.

안녕하세요.

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
해당 라인을 주석처리하면 저런 현상이 발생되지 않네요.
확인 부탁드립니다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.