Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solar Assistant - MQTT
#1
I know its not really a driver since it uses MQTT. But hay this really isn't supported by me either Smile.

[Image: eqcX5P0.png]

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”


.zip   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>
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Zigbee switches,
iPads,Tivo,Hikvision,Elk-M1,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Rainmachine, Home Assistant, Tesla model S,
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)