Solar Assistant - MQTT - Printable Version +- CQC Community Support Forum (https://cqccommunity.com) +-- Forum: Community General Discussion (https://cqccommunity.com/forumdisplay.php?fid=1) +--- Forum: Driver Development (https://cqccommunity.com/forumdisplay.php?fid=4) +--- Thread: Solar Assistant - MQTT (/showthread.php?tid=5) |
Solar Assistant - MQTT - kfly - 01-13-2024 I know its not really a driver since it uses MQTT. But hay this really isn't supported by me either . https://solar-assistant.io/ Overview This is a very special driver in that it actually allows you to create 'pseudo fields' whose values are 1. Import the attached template into CQC admin screen(File/Tools/Import packages) 2. Start the MQTT Broker in the Solar Assistant device config screen. 3. Install CQC MQTT Driver and name the Moniker: “SolarAssistant” 4. Edit the Config file as per your inverter setup: 5. Install CQC LogicSrv driver and add the 3 fields and source fields(to calculate percentages for the real time gauges) 6. Create/Edit MQTT config file for data to be accessed by CQC “C:\Program Files (x86)\CQC\CQCData\Server\Data\MQTT\SolarAssistant” SolarAssistantV1.zip (Size: 816.8 KB / Downloads: 0) To add 3 fields to the LogicSrv Configuration screen (to hold calculation for gauges) Of course my Inverter is a 3K invert you should change 3000 to match your inverter so gauges are correct.(note Since there is no gauge widget had to make images – 10% 20% 30%,etc) Defined Fields Source Fields Formula BatteryPowerPercent SolarAssistant.BatteryPower 10 * %(1) / 3000 GridPowerPercent SolarAssistant.GridPower 10 * %(1) / 3000 LoadPowerPercent SolarAssistant.LoadPower 10 * %(1) / 3000 My MQTT Config file: (highly recommend downloading and running MQTT Explorer software to get your fields for config file) C:\Program Files (x86)\CQC\CQCData\Server\Data\MQTT\SolarAssistant <?xml version="1.0" encoding="US-ASCII"?> <!DOCTYPE MQTTCfg PUBLIC "urn:charmedquark.com:CQC-MQTTCfg.DTD" "CQCMQTTCfg.DTD"> <MQTTCfg Version="1" MQTTPort="1883" MQTTAddr="192.168.2.191"> <Fields> <Generic Topic="solar_assistant/inverter_1/load_power/state" BaseName="LoadPower" Access="R" FldType="Card" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/inverter_1/grid_power/state" BaseName="GridPower" Access="R" FldType="Card" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/inverter_1/grid_voltage/state" BaseName="GridVoltage" Access="R" FldType="Float" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/inverter_1/pv_power/state" BaseName="PvPower" Access="R" FldType="Card" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/total/battery_state_of_charge/state" BaseName="BatteryStateOfCharge" Access="R" FldType="Card" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/total/battery_power/state" BaseName="BatteryPower" Access="R" FldType="Int" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/inverter_1/battery_current/state" BaseName="BatteryCurrent" Access="R" FldType="Float" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/inverter_1/battery_voltage/state" BaseName="BatteryVoltage" Access="R" FldType="Float" > <PLFmt Type="BinText"/> </Generic> <Generic Topic="solar_assistant/inverter_1/device_mode/state" BaseName="DeviceMode" Access="R" FldType="String" > <PLFmt Type="BinText"/> </Generic> </Fields> </MQTTCfg> |