Li Ji
89352d372a
fix: drop non-UTF-8 cloud mips message instead of crashing mqtt loop ( #1750 )
...
MipsCloudClient._on_mips_message decodes the push payload with a bare
payload.decode('utf-8'). Some cloud pushes carry payloads that are not
valid UTF-8, which raises UnicodeDecodeError inside paho's on_message,
aborts the read loop and silently drops the message. Lost device
online/offline pushes can leave a device stuck unavailable until the
config entry is reloaded manually.
Catch UnicodeDecodeError, log the topic and the payload hex for
diagnosis, and skip the message so that one malformed push cannot
break message processing.
Related to #1749
2026-09-24 10:54:13 +08:00
Li Shuzhen
1a5f890cbe
fix: tls verify mijia cloud mqtt broker hostname ( #1774 )
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
2026-08-18 17:48:40 +08:00
Li Shuzhen
f4d591b4d3
perf: remove unused device info ( #1574 )
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
2025-12-26 08:42:23 +08:00
Li Shuzhen
500ed76971
fix: subscribe error catch ( #1551 )
2025-12-16 08:27:30 +08:00
Li Shuzhen
30ce1b4970
perf: cloud mqtt broker host constant value ( #1530 )
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
2025-12-04 12:19:21 +08:00
vshijiav
1ec325c9c7
fix: stop MQTT internal loop immediately when main loop is closed ( #1484 )
2025-11-07 10:18:25 +08:00
Li Shuzhen
ec833b6539
feat: subscribe the proxy gateway child device up messages even though the device is offline ( #1393 )
...
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
* feat: subscribe the proxy gateway child device up messages even though the device is offline (#1313 )
* feat: do not subscribe proxy gateway child device online/offline state message
2025-09-02 17:22:40 +08:00
Li Shuzhen
c29f7eecbd
fix: delete all unsupported MIoT-Spec-V2 instances of Narwa vacuum ( #1355 )
2025-08-19 14:12:35 +08:00
Li Shuzhen
925cf3b90f
feat: do not subscribe BLE device online/offline state message ( #1264 )
2025-07-16 13:57:43 +08:00
Li Shuzhen
b46805b92c
fix: airer status for cover entity ( #1235 )
...
* fix: xiaomi.airer.pro3 airer status rising (#1222 )
* fix: airer status
* fix: filter out non alphabetic characters from status descriptions
2025-07-09 09:16:55 +08:00
Li Shuzhen
6069eaaba8
feat: exclude unsupported model ( #1205 )
...
* feat: ignore unsupported models (#933 )
* fix: remove unnecessary logs
2025-06-30 11:12:58 +08:00
Li Shuzhen
fd57e7c565
fix: reconnect delay time ( #1200 )
...
* fix: reset the reconnect interval when connected (#1175 )
* feat: set the default reconnect delay time as 10 seconds
* fix: get the minimum reconnect interval
2025-06-30 11:12:18 +08:00
Li Shuzhen
5179e97e38
fix: the error "mips unsub internal error, 4, None" ( #1135 )
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
2025-06-12 10:41:37 +08:00
Li Shuzhen
a09289ef90
Fix specs ( #929 )
...
* fix: cuco.plug.cp2 voltage and power value ratio
* fix: cgllc.airmonitor.s1 unit ppb
* fix: roswan.waterpuri.lte01 tds unit
* fix: lumi.relay.c2acn01 power consumption unit
* fix: xiaomi.bhf_light.s1 fan level of ventilation
* fix: error log
2025-03-28 09:10:09 +08:00
Li Shuzhen
8be0fa5d61
fix: MIoT-Spec-V2 conflicts of xiaomi.fan.p5 and mike.bhf_light.2 ( #866 )
Tests / check-rule-format (push) Waiting to run
Validate / validate-hassfest (push) Waiting to run
Validate / validate-hacs (push) Waiting to run
Validate / validate-lint (push) Waiting to run
Validate / validate-setup (push) Waiting to run
2025-03-12 15:22:03 +08:00
Necroneco
417af787c4
fix: some event:motion-detected does not contain 'arguments' ( #712 )
2025-02-28 16:45:17 +08:00
Paul Shawn
8778b00c3a
feat: support modify spec and value conversion ( #663 )
...
* fix: fix miot_device type error
* fix: fix type error
* feat: remove spec cache storage
* feat: update std_lib and multi_lang logic
* feat: update entity value-range
* feat: update value-list logic
* feat: update prop.format_ logic
* fix: fix miot cloud log error
* fix: fix fan entity
* style: ignore type error
* style: rename spec_filter func name
* feat: move bool_trans from storage to spec
* feat: move sepc_filter from storage to spec, use the YAML format file
* feat: same prop supports multiple sub
* feat: same event supports multiple sub
* fix: fix device remove error
* feat: add func slugify_did
* fix: fix multi lang error
* feat: update action debug logic
* feat: ignore normal disconnect log
* feat: support binary mode
* feat: change miot spec name type define
* style: ignore i18n tranlate type error
* fix: fix pylint warning
* fix: miot storage type error
* feat: support binary display mode configure
* feat: set default sensor state_class
* fix: fix sensor entity type error
* fix: fix __init__ type error
* feat: update test case logic
* fix: github actions add dependencies lib
* fix: fix some type error
* feat: update device list changed notify logic
* feat: update prop expr logic
* feat: add spec modify
* feat: update device sub id logic
* feat: update get miot client instance logic
* fix: fix some type error
* feat: update miot device unit and icon trans
* perf: update spec trans entity logic
* feat: update spec trans entity rule
* feat: update spec_modify
* feat: update sensor ENUM icon
* fix: fix miot device error
* fix: fix miot spec error
* featL update format check and spec modify file
* feat: update checkout rule format
* feat: handle special property.unit
* feat: add expr for cuco-cp1md
* feat: fix climate hvac error
* feat: set sensor suggested display precision
* feat: update climate set hvac logic
* feat: add expr for cuco-v3
* feat: update spec expr for chuangmi-212a01
2025-01-22 19:21:02 +08:00
Paul Shawn
ef56448dbb
refactor: refactor miot device and spec ( #592 )
...
* fix: fix miot_device type error
* fix: fix type error
* feat: remove spec cache storage
* feat: update std_lib and multi_lang logic
* feat: update entity value-range
* feat: update value-list logic
* feat: update prop.format_ logic
* fix: fix miot cloud log error
* fix: fix fan entity
* style: ignore type error
* style: rename spec_filter func name
* feat: move bool_trans from storage to spec
* feat: move sepc_filter from storage to spec, use the YAML format file
* feat: same prop supports multiple sub
* feat: same event supports multiple sub
* fix: fix device remove error
* feat: add func slugify_did
* fix: fix multi lang error
* feat: update action debug logic
* feat: ignore normal disconnect log
* feat: support binary mode
* feat: change miot spec name type define
* style: ignore i18n tranlate type error
* fix: fix pylint warning
* fix: miot storage type error
* feat: support binary display mode configure
* feat: set default sensor state_class
* fix: fix sensor entity type error
* fix: fix __init__ type error
* feat: update test case logic
* fix: github actions add dependencies lib
* fix: fix some type error
* feat: update device list changed notify logic
2025-01-17 18:14:31 +08:00
Paul Shawn
75e44f4f93
feat: change mips reconnect logic & add mips test case ( #641 )
...
* test: add test case for mips
* feat: change mips reconnect logic
* fix: fix test_mdns type error
2025-01-14 17:55:49 +08:00
Feng Wang
9ceca34b28
refactor: refactor miot mips & fix type errors ( #365 )
...
* remove use of tev & fix type errors
* lint fix
* make private classes private
* simplify inheritance
* fix thread naming
* fix the deleted public data class
* remove tev
* fix access violation
* style: format code
* style: param init
* fix: fix event async set
* fix: fix mips re-connect error
---------
Co-authored-by: topsworld <sworldtop@gmail.com >
2025-01-10 21:46:00 +08:00
Paul Shawn
c1867e2baf
fix: fix type error, wrong use of any and Any ( #338 )
...
* fix: fix type error, wrong use of any and Any
* fix: wrong use of session close
* fix: fix test_lan type error
* fix: remove __del__
* feat: oauth, http add deinit_async
2024-12-22 10:46:58 +08:00
topsworld
7a336c31fe
style: ignore pylint wanring ('inconsistent-quotes')
2024-12-16 10:41:30 +08:00
topsworld
99e89d78e0
style: pylint check add ignore item
2024-12-10 19:11:25 +08:00
topsworld
838fff399b
feat: first commit
2024-12-10 17:36:32 +08:00