Closed supermario900 closed 10 months ago
Проблема останется без решения?
Проблема останется без решения?
Судя по вашему описанию, вы не используете порт прерывания (это 3ий порт, в настройках контроллера int), он необходим для уведомления сервера о сработавших событиях.
Вы про этот INT?
Вы про этот INT?
![]()
Да про него )
Сложно тогда сказать в чем у вас проблема. Но на лицо отсутствие уведомлений сервера. Вообще я помню был тут пользователь активный, который тестил этот модуль-все работало штатно.
У меня такого модуля нет, поэтому вряд ли смогу разобраться. Сейчас нет времени погружаться в код "на ощупь"
Вот тут много обсуждали: https://github.com/andvikt/mega_hacs/issues/26
Все в итоге заработало, почитайте с начала, может там найдутся идея о том что может быть не так
У меня такая же ситуация: изначально при старте плагина неправильно определяется состояние порта 0 на 16I-XT. Удаление плагина и переустановка, повторное чтение состояния портов не помогает. порт 34e0.
Значение сенсора в интерфейсе ha - Выключено. На меге - ON.
type=submit value=Save>
2023-09-19 13:04:56.865 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=38&scl=35&i2c_dev=htu21d
2023-09-19 13:04:56.896 DEBUG (MainThread) [custom_components.mega.mega1] response 9.62
2023-09-19 13:04:56.897 DEBUG (MainThread) [custom_components.mega.mega1] i2c response: {(('pt', '38'), ('scl', '35'), ('i2c_dev', 'htu21d')): '9.62'}
2023-09-19 13:04:56.897 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=38&scl=35&i2c_dev=htu21d&i2c_par=1
2023-09-19 13:04:56.958 DEBUG (MainThread) [custom_components.mega.mega1] response 108.87
2023-09-19 13:04:56.958 DEBUG (MainThread) [custom_components.mega.mega1] i2c response: {(('pt', '38'), ('scl', '35'), ('i2c_dev', 'htu21d'), ('i2c_par', 1)): '108.87'}
2023-09-19 13:04:56.959 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&cmd=get
2023-09-19 13:04:56.972 DEBUG (MainThread) [custom_components.mega.mega1] response ON;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;OFF
2023-09-19 13:04:56.972 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=38&cmd=get
2023-09-19 13:04:57.010 DEBUG (MainThread) [custom_components.mega.mega1] response 0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
2023-09-19 13:04:57.010 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?cmd=all
2023-09-19 13:04:57.025 DEBUG (MainThread) [custom_components.mega.mega1] response OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;OFF;OFF;OFF;OFF;temp:14.81;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF/0;OFF;OFF;OFF;0;OFF;0;0;temp:14.75;OFF/0;OFF/0;OFF/0;OFF/0;MCP;OFF;OFF;ON/1;PCA;OFF/0;OFF;OFF;OFF;OFF/0;OFF/0;OFF
2023-09-19 13:04:57.025 DEBUG (MainThread) [custom_components.mega.mega1] [
P0/OFF/0
2023-09-19 13:05:00.977 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=1
2023-09-19 13:05:00.999 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P1/OFF/0
2023-09-19 13:05:01.003 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=2
2023-09-19 13:05:01.024 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P2/OFF/0
2023-09-19 13:05:01.027 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=3
2023-09-19 13:05:01.049 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P3/OFF/0
2023-09-19 13:05:01.052 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=4
2023-09-19 13:05:01.074 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P4/OFF/0
2023-09-19 13:05:01.077 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=5
2023-09-19 13:05:01.098 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P5/OFF/0
2023-09-19 13:05:01.102 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=6
2023-09-19 13:05:01.125 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P6/OFF/0
2023-09-19 13:05:01.128 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=7
2023-09-19 13:05:01.150 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P7/OFF
ON OFF
2023-09-19 13:05:01.153 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=8
2023-09-19 13:05:01.170 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P8/OFF
2023-09-19 13:05:01.173 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=9
2023-09-19 13:05:01.190 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P9/OFF
2023-09-19 13:05:01.193 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=10
2023-09-19 13:05:01.211 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P10/OFF
2023-09-19 13:05:01.213 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=11
2023-09-19 13:05:01.232 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P11/OFF
2023-09-19 13:05:01.234 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=12
2023-09-19 13:05:01.252 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P12/OFF
2023-09-19 13:05:01.254 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=13
2023-09-19 13:05:01.275 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P13/OFF
ON OFF
2023-09-19 13:05:01.278 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=14
2023-09-19 13:05:01.301 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P14
temp:14.81
2023-09-19 13:05:01.304 DEBUG (MainThread) [custom_components.mega.mega1] get port 14
2023-09-19 13:05:01.304 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=14&cmd=get
2023-09-19 13:05:01.315 DEBUG (MainThread) [custom_components.mega.mega1] response temp:14.81
2023-09-19 13:05:01.315 DEBUG (MainThread) [custom_components.mega.mega1] parsed: {'value': {'temp': '14.81'}}
2023-09-19 13:05:01.315 DEBUG (MainThread) [custom_components.mega.mega1] values: {'value': {'temp': '14.81'}}
2023-09-19 13:05:01.315 DEBUG (MainThread) [custom_components.mega.mega1] add sensor temp
2023-09-19 13:05:01.315 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=15
2023-09-19 13:05:01.337 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P15/OFF/0
2023-09-19 13:05:01.341 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=16
2023-09-19 13:05:01.362 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P16/OFF/0
2023-09-19 13:05:01.366 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=17
2023-09-19 13:05:01.387 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P17/OFF/0
2023-09-19 13:05:01.390 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=18
2023-09-19 13:05:01.411 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P18/OFF/0
2023-09-19 13:05:01.415 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=19
2023-09-19 13:05:01.436 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P19/OFF/0
2023-09-19 13:05:01.443 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=20
2023-09-19 13:05:01.465 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P20/OFF/0
2023-09-19 13:05:01.468 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=21
2023-09-19 13:05:01.491 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P21/OFF/0
2023-09-19 13:05:01.494 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=22
2023-09-19 13:05:01.514 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P22/OFF
ON OFF
2023-09-19 13:05:01.517 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=23
2023-09-19 13:05:01.535 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P23/OFF
2023-09-19 13:05:01.537 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=24
2023-09-19 13:05:01.554 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P24/OFF
2023-09-19 13:05:01.557 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=25
2023-09-19 13:05:01.578 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P25
2023-09-19 13:05:01.582 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=26
2023-09-19 13:05:01.599 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P26/OFF
2023-09-19 13:05:01.601 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=27
2023-09-19 13:05:01.625 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P27
2023-09-19 13:05:01.629 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=28
2023-09-19 13:05:01.651 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P28
2023-09-19 13:05:01.655 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=29
2023-09-19 13:05:01.678 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P29
temp:14.75
2023-09-19 13:05:01.682 DEBUG (MainThread) [custom_components.mega.mega1] get port 29
2023-09-19 13:05:01.682 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=29&cmd=get
2023-09-19 13:05:01.692 DEBUG (MainThread) [custom_components.mega.mega1] response temp:14.75
2023-09-19 13:05:01.692 DEBUG (MainThread) [custom_components.mega.mega1] parsed: {'value': {'temp': '14.75'}}
2023-09-19 13:05:01.692 DEBUG (MainThread) [custom_components.mega.mega1] values: {'value': {'temp': '14.75'}}
2023-09-19 13:05:01.692 DEBUG (MainThread) [custom_components.mega.mega1] add sensor temp
2023-09-19 13:05:01.692 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=30
2023-09-19 13:05:01.714 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P30/OFF/0
2023-09-19 13:05:01.718 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=31
2023-09-19 13:05:01.740 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P31/OFF/0
2023-09-19 13:05:01.743 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=32
2023-09-19 13:05:01.765 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P32/OFF/0
2023-09-19 13:05:01.768 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=33
2023-09-19 13:05:01.790 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P33/OFF/0
2023-09-19 13:05:01.793 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34
2023-09-19 13:05:01.820 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34
ON;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;OFF
EXT
2023-09-19 13:05:01.823 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&cmd=get
2023-09-19 13:05:01.836 DEBUG (MainThread) [custom_components.mega.mega1] response ON;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;ON;OFF;OFF
2023-09-19 13:05:01.837 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=0
2023-09-19 13:05:01.871 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:0/ON
2023-09-19 13:05:01.874 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=1
2023-09-19 13:05:01.908 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:1/OFF
2023-09-19 13:05:01.911 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=2
2023-09-19 13:05:01.945 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:2/OFF
2023-09-19 13:05:01.947 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=3
2023-09-19 13:05:01.982 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:3/OFF
2023-09-19 13:05:01.985 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=4
2023-09-19 13:05:02.019 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:4/OFF
2023-09-19 13:05:02.022 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=5
2023-09-19 13:05:02.056 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:5/OFF
2023-09-19 13:05:02.059 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=6
2023-09-19 13:05:02.093 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:6/OFF
2023-09-19 13:05:02.096 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=7
2023-09-19 13:05:02.130 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:7/OFF
2023-09-19 13:05:02.132 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=8
2023-09-19 13:05:02.167 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:8/OFF
2023-09-19 13:05:02.170 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=9
2023-09-19 13:05:02.205 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:9/OFF
2023-09-19 13:05:02.207 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=10
2023-09-19 13:05:02.243 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:10/OFF
2023-09-19 13:05:02.247 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=11
2023-09-19 13:05:02.282 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:11/OFF
2023-09-19 13:05:02.285 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=12
2023-09-19 13:05:02.319 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:12/OFF
2023-09-19 13:05:02.322 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=13
2023-09-19 13:05:02.357 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:13/ON
2023-09-19 13:05:02.360 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=14
2023-09-19 13:05:02.394 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:14/OFF
2023-09-19 13:05:02.397 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&ext=15
2023-09-19 13:05:02.431 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P34/EXT:15/OFF
2023-09-19 13:05:02.434 DEBUG (MainThread) [custom_components.mega.mega1] find scan link: I2C Scan
2023-09-19 13:05:02.434 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=34&cmd=scan
2023-09-19 13:05:02.550 DEBUG (MainThread) [custom_components.mega.mega1] response Back
0x20 - MCP230XX
0x50 - <a href=/dam/?pt=34&scl=35&i2c_dev=>
0x58 - <a href=/dam/?pt=34&scl=35&i2c_dev=>
2023-09-19 13:05:02.552 DEBUG (MainThread) [custom_components.mega.mega1] scan results: ([], [])
2023-09-19 13:05:02.552 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=35
2023-09-19 13:05:02.570 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P35/OFF
2023-09-19 13:05:02.573 DEBUG (MainThread) [custom_components.mega.mega1] find scan link: None
2023-09-19 13:05:02.573 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=36
2023-09-19 13:05:02.591 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P36/OFF
2023-09-19 13:05:02.594 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=37
2023-09-19 13:05:02.616 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P37/ON/1
2023-09-19 13:05:02.619 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=38
2023-09-19 13:05:02.669 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P38
0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
EXT
2023-09-19 13:05:02.672 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=38&cmd=get
2023-09-19 13:05:02.710 DEBUG (MainThread) [custom_components.mega.mega1] response 0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
2023-09-19 13:05:02.710 DEBUG (MainThread) [custom_components.mega.mega1] find scan link: I2C Scan
2023-09-19 13:05:02.711 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=38&cmd=scan
2023-09-19 13:05:02.833 DEBUG (MainThread) [custom_components.mega.mega1] response Back
0x40 - HTU21D/PCA9685/HM3301/INA226
0x50 - <a href=/dam/?pt=38&scl=35&i2c_dev=>
0x58 - <a href=/dam/?pt=38&scl=35&i2c_dev=>
2023-09-19 13:05:02.835 DEBUG (MainThread) [custom_components.mega.mega1] scan results: ([{'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d'}, {'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d', 'i2c_par': 1}], [{'id_suffix': 'htu21d_humidity', 'device_class': <SensorDeviceClass.HUMIDITY: 'humidity'>, 'params': {'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d'}, 'unit_of_measurement': '%'}, {'id_suffix': 'htu21d_temperature', 'device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'params': {'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d', 'i2c_par': 1}, 'unit_of_measurement': '°C'}])
2023-09-19 13:05:02.835 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=39
2023-09-19 13:05:02.856 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P39/OFF/0
2023-09-19 13:05:02.861 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=40
2023-09-19 13:05:02.878 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P40/OFF
2023-09-19 13:05:02.880 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=41
2023-09-19 13:05:02.898 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P41/OFF
2023-09-19 13:05:02.901 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=42
2023-09-19 13:05:02.920 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P42/OFF
2023-09-19 13:05:02.922 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=43
2023-09-19 13:05:02.944 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P43/OFF/0
2023-09-19 13:05:02.947 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=44
2023-09-19 13:05:02.969 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P44/OFF/0
2023-09-19 13:05:02.973 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=45
2023-09-19 13:05:02.991 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P45/OFF
2023-09-19 13:05:02.994 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=46
2023-09-19 13:05:03.004 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P46/OFF
2023-09-19 13:05:03.006 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=47
2023-09-19 13:05:03.017 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P47/OFF
2023-09-19 13:05:03.018 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=48
2023-09-19 13:05:03.029 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P48/OFF
2023-09-19 13:05:03.031 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=49
2023-09-19 13:05:03.041 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P49/OFF/0
2023-09-19 13:05:03.043 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=50
2023-09-19 13:05:03.053 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P50/OFF/65280
2023-09-19 13:05:03.055 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=51
2023-09-19 13:05:03.066 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P51/OFF/12344
2023-09-19 13:05:03.068 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=52
2023-09-19 13:05:03.079 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P52/OFF/65280
2023-09-19 13:05:03.080 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=53
2023-09-19 13:05:03.092 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P53/OFF/65535
2023-09-19 13:05:03.093 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=54
2023-09-19 13:05:03.104 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P54/OFF/65535
2023-09-19 13:05:03.106 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=55
2023-09-19 13:05:03.117 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P55/OFF/65535
2023-09-19 13:05:03.119 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=56
2023-09-19 13:05:03.130 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P56/OFF/65535
2023-09-19 13:05:03.131 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=57
2023-09-19 13:05:03.141 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P57/OFF/65535
2023-09-19 13:05:03.143 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=58
2023-09-19 13:05:03.154 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P58/OFF/65535
2023-09-19 13:05:03.155 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=59
2023-09-19 13:05:03.167 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P59/OFF/65535
2023-09-19 13:05:03.169 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=60
2023-09-19 13:05:03.179 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P60/OFF/65535
2023-09-19 13:05:03.181 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=61
2023-09-19 13:05:03.191 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P61/OFF/65535
2023-09-19 13:05:03.192 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=62
2023-09-19 13:05:03.204 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P62/OFF/0
2023-09-19 13:05:03.205 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=63
2023-09-19 13:05:03.218 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P63/OFF/0
2023-09-19 13:05:03.219 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=64
2023-09-19 13:05:03.230 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P64/OFF/0
2023-09-19 13:05:03.232 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=65
2023-09-19 13:05:03.242 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P65/OFF/0
2023-09-19 13:05:03.244 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=66
2023-09-19 13:05:03.255 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P66/OFF/0
2023-09-19 13:05:03.257 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=67
2023-09-19 13:05:03.268 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P67/OFF/0
2023-09-19 13:05:03.269 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=68
2023-09-19 13:05:03.279 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P68/OFF/0
2023-09-19 13:05:03.281 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=69
2023-09-19 13:05:03.292 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P69/OFF/0
2023-09-19 13:05:03.294 DEBUG (MainThread) [custom_components.mega.mega1] request: http://192.168.6.20/dam/?pt=70
2023-09-19 13:05:03.305 DEBUG (MainThread) [custom_components.mega.mega1] response Back
P70/OFF/0
2023-09-19 13:05:03.306 DEBUG (MainThread) [custom_components.mega.mega1] new config: {'mqtt_id': 'mega1', 'id': 'mega1', 'host': '192.168.6.20', 'password': 'dam', 'scan_interval': 30, 'poll_outs': True, 'nports': 70, 'update_all': True, 'fake_response': False, 'force_d': True, 'restore_on_restart': True, 'protected': True, 'allow_hosts': '::1;127.0.0.1', 'update_time': True, 'new_naming': True, 'extenders': [34, 38], 'ext_in': {44: 34}, 'ext_acts': {'34e13': '38e0:0'}, 'i2c_sensors': [{'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d'}, {'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d', 'i2c_par': 1}], 'smooth': [], 'binary_sensor': defaultdict(<class 'list'>, {0: [{}], 1: [{}], 2: [{}], 3: [{}], 4: [{}], 5: [{}], 6: [{}], 15: [{}], 16: [{}], 17: [{}], 18: [{}], 19: [{}], 20: [{}], 21: [{}], 30: [{}], 31: [{}], 32: [{}], 33: [{}], '34e00': [{}], '34e01': [{}], '34e02': [{}], '34e03': [{}], '34e04': [{}], '34e05': [{}], '34e06': [{}], '34e07': [{}], '34e08': [{}], '34e09': [{}], '34e10': [{}], '34e11': [{}], '34e12': [{}], '34e13': [{}], '34e14': [{}], '34e15': [{}], 37: [{}], 39: [{}], 43: [{}], 44: [{}]}), 'light': defaultdict(<class 'list'>, {7: [{'dimmer': False, 'smooth': None}], 13: [{'dimmer': False, 'smooth': None}], 22: [{'dimmer': False, 'smooth': None}], 25: [{'dimmer': True, 'smooth': None}], 27: [{'dimmer': True, 'smooth': None}], 28: [{'dimmer': True, 'smooth': None}], '38e0': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e00'}], '38e1': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e01'}], '38e2': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e02'}], '38e3': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e03'}], '38e4': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e04'}], '38e5': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e05'}], '38e6': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e06'}], '38e7': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e07'}], '38e8': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e08'}], '38e9': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e09'}], '38e10': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e10'}], '38e11': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e11'}], '38e12': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e12'}], '38e13': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e13'}], '38e14': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e14'}], '38e15': [{'dimmer': True, 'dimmer_scale': 16, 'name': 'mega1_38e15'}]}), 'sensor': defaultdict(<class 'list'>, {14: [{'key': 'temp', 'unit_of_measurement': '°C', 'device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'id_suffix': 'temp', 'http_cmd': 'get'}], 29: [{'key': 'temp', 'unit_of_measurement': '°C', 'device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'id_suffix': 'temp', 'http_cmd': 'get'}]}), 'i2c': defaultdict(<class 'list'>, {34: [], 38: [{'id_suffix': 'htu21d_humidity', 'device_class': <SensorDeviceClass.HUMIDITY: 'humidity'>, 'params': {'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d'}, 'unit_of_measurement': '%'}, {'id_suffix': 'htu21d_temperature', 'device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'params': {'pt': '38', 'scl': '35', 'i2c_dev': 'htu21d', 'i2c_par': 1}, 'unit_of_measurement': '°C'}]})}
чинится одной строчкой
исправлено в 1.1.8b5
Описание К 2561 подключены 2 расширителя 16I-XT к портам 31 и 32. Интеграция неверно определяет состояние сенсоров.
Версии систем Enviroment: raspberry/linux/windows/macos/docker HA version: 2023.7.3 mega_hacs version: 1.32.1 megad firmware version: 4.59b7 используется mqtt: false
Screenshots
LOG 2023-07-27 13:46:38.227 DEBUG (MainThread) [custom_components.mega.mega-43] poll 2023-07-27 13:46:38.228 DEBUG (MainThread) [custom_components.mega.mega-43] request: http://192.168.1.43/sec/?pt=31&cmd=get 2023-07-27 13:46:38.253 DEBUG (MainThread) [custom_components.mega.mega-43] response ON;OFF;ON;ON;OFF;ON;OFF;ON;ON;ON;OFF;OFF;ON;OFF;OFF;OFF 2023-07-27 13:46:38.254 DEBUG (MainThread) [custom_components.mega.mega-43] request: http://192.168.1.43/sec/?pt=32&cmd=get 2023-07-27 13:46:38.266 DEBUG (MainThread) [custom_components.mega.mega-44] response 0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 2023-07-27 13:46:38.266 DEBUG (MainThread) [custom_components.mega.mega-44] request: http://192.168.1.44/sec/?cmd=all 2023-07-27 13:46:38.274 DEBUG (MainThread) [custom_components.mega.mega-43] response ON;ON;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF;OFF 2023-07-27 13:46:38.275 DEBUG (MainThread) [custom_components.mega.mega-43] request: http://192.168.1.43/sec/?cmd=all