Commit Graph

6 Commits

Author SHA1 Message Date
不求圣剑
1c3933d5e3 feat: enhance data transmission and sensor handling
- Added new energy data points and updated the initialization of energy variables in data_transmission_example.py.
- Improved data construction and parsing methods to handle new data formats and ensure compatibility with updated MQTT topics.
- Refined sensor logic in JackeryHome component to correctly map meter serial numbers and handle power values more robustly.
- Ensured consistent data types for meter values and improved error handling during data processing.
2025-11-18 14:45:26 +08:00
不求圣剑
054fa172f2 feat: update MQTT broker and enhance data handling
- Changed MQTT broker address from 192.168.0.101 to 192.168.1.100 across multiple files.
- Introduced new data handling methods in data_transmission_example.py for constructing and parsing data requests and responses.
- Updated MQTT topics to follow a new structure for better organization and clarity.
- Enhanced sensor logic in JackeryHome component to support new data formats and improve device state management.
2025-11-18 11:06:31 +08:00
不求圣剑
a3d46e8f7a feat: 增加能源数据模拟发送功能
- 在data_transmission_example.py中增加energy类型数据的模拟发送
- 能源数据基准从1kWh开始,每次增加0.1kWh
- 简化传感器处理逻辑,直接显示累积值而不进行计算
- 支持所有能源类型:太阳能、家庭用电、电网购买/出售、电池充放电
2025-10-15 10:49:38 +08:00
不求圣剑
01848881d5 Refactor data transmission example: comment out sleep and data sending, extend simulation duration to 1000 seconds for improved testing. 2025-10-14 15:12:02 +08:00
不求圣剑
0ed60db853 更新 MQTT 主题为 device/data 和 device/data-get,调整相关订阅和消息处理逻辑,确保一致性和清晰度。 2025-10-14 15:06:48 +08:00
不求圣剑
3f698d6e16 first commit 2025-10-14 10:44:00 +08:00