From 0dac734545345000e8965b3ad0e44b36bfcb1f86 Mon Sep 17 00:00:00 2001 From: MickMake Date: Wed, 2 Mar 2022 14:32:56 +1100 Subject: [PATCH] v1.4.0 Implement HASSIO MQTT --- .idea/workspace.xml | 73 +- README.md | 25 +- cmd/cmd_data_sub.go | 2 +- cmd/cmd_mqtt.go | 203 ++++- docs/SunGrowOnHASSIO.png | Bin 0 -> 347116 bytes go.mod | 2 + go.sum | 5 + .../AppService/queryDeviceList/data.go | 53 +- iSolarCloud/api/output/file.go | 29 + iSolarCloud/api/output/struct_table.go | 23 + iSolarCloud/api/output/struct_table2.go | 74 -- iSolarCloud/api/web.go | 62 +- iSolarCloud/funcs.go | 262 +------ iSolarCloud/highlevel.go | 366 +++++++++ iSolarCloud/struct_output.go | 113 --- iSolarCloud/struct_template.go | 143 ---- mmMqtt/config.go | 53 ++ mmMqtt/funcs.go | 692 ++++++++++++++++++ mmMqtt/lights.go | 135 ++++ mmMqtt/sensors.go | 109 +++ mmMqtt/struct.go | 374 ++++++++++ mmMqtt/switch.go | 32 + 22 files changed, 2117 insertions(+), 713 deletions(-) create mode 100644 docs/SunGrowOnHASSIO.png delete mode 100644 iSolarCloud/api/output/struct_table2.go create mode 100644 iSolarCloud/highlevel.go delete mode 100644 iSolarCloud/struct_output.go delete mode 100644 iSolarCloud/struct_template.go create mode 100644 mmMqtt/config.go create mode 100644 mmMqtt/funcs.go create mode 100644 mmMqtt/lights.go create mode 100644 mmMqtt/sensors.go create mode 100644 mmMqtt/struct.go create mode 100644 mmMqtt/switch.go diff --git a/.idea/workspace.xml b/.idea/workspace.xml index edd6250df..cd3ed5109 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,22 +5,27 @@ + + + + + + - - - - - - - - - - - + + + - - + + + + + + + + +