Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 36
» Latest member: RonaldJew
» Forum threads: 24
» Forum posts: 74

Full Statistics

Online Users
There are currently 3 online users.
» 0 Member(s) | 3 Guest(s)

Latest Threads
Anyone Having Issues wtih...
Forum: CQC Community Support for CQC-based automation systems.
Last Post: CostcoBal
5 hours ago
» Replies: 2
» Views: 252
Brultech Green Eye Monito...
Forum: CQC Community Support for CQC-based automation systems.
Last Post: kblagron
05-07-2025, 07:23 AM
» Replies: 3
» Views: 50
Any Water Meters that are...
Forum: CQC Community Support for CQC-based automation systems.
Last Post: kblagron
04-23-2025, 02:55 AM
» Replies: 10
» Views: 240
CQC Installation Download...
Forum: CQC Community Support for CQC-based automation systems.
Last Post: sandman
04-11-2025, 12:31 AM
» Replies: 2
» Views: 78
Archive of CQC CQCInst fi...
Forum: CQC Installation files
Last Post: kfly
04-10-2025, 10:29 PM
» Replies: 1
» Views: 343
ISY-994i Options
Forum: CQC Community Support for CQC-based automation systems.
Last Post: piloyguy
04-08-2025, 05:56 PM
» Replies: 5
» Views: 317
Any way to pause/resume v...
Forum: CQC Community Support for CQC-based automation systems.
Last Post: Spot
03-23-2025, 08:02 PM
» Replies: 0
» Views: 37
VPN Service issue
Forum: CQC Community Support for CQC-based automation systems.
Last Post: Spot
03-23-2025, 07:33 PM
» Replies: 2
» Views: 90
Restore from backup
Forum: CQC Community Support for CQC-based automation systems.
Last Post: kblagron
03-14-2025, 09:34 PM
» Replies: 5
» Views: 189
CQC 6.0.2 Installer
Forum: CQC Installation files
Last Post: Spot
03-07-2025, 02:36 PM
» Replies: 0
» Views: 57

 
  Solar Assistant - MQTT
Posted by: kfly - 01-13-2024, 05:19 PM - Forum: Driver Development - No Replies

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>

Print this item

  RainMachine Sprinkler Irrigation Controller Driver
Posted by: kfly - 01-13-2024, 03:08 PM - Forum: Driver Development - Replies (2)

Kfly (Kevin) and I developed a CQC Driver for RainMachine that interfaces with the REST API that the hardware provides.

It currently works with the Mini-8, Pro, and Touch HD models. The driver will query for program and zone names and settings, and give you the ability to view and control various aspects of the device. 

All of the program and zone settings will have to be managed through the RainMachine application, as this driver only displays information that has already been programmed in the device. It also allows manual start and stop operations of programs and zones along with the ability to Snooze the Rainmachine for up to 365 days (i.e. disable) or Pause a currently running program and/or zone for up to 12 hours.

See the Help file (attached) for more information on how this driver works.

Updated to V1.96 which fixes the way the Snooze start time is gathered, and also adds the RainLastStartTime field which provides a date/time when the last Rain event occurred if you have a Rain sensor.

Updated to V1.97 to fix a few bugs that occur between the various systems.

Updated to V1.99 to fix a bug that occurred on a RainMachine update that now read 8 days of upcoming weather rather than the 7 it did before.   Also updated the http timeout request from 4 seconds to 8 seconds which seems to settle down the number of times the driver times out due to no data received.


.cqcdrvpack   RainMachine 1.99.CQCDrvPack (Size: 26.6 KB / Downloads: 1)

.html   RainMachine Help 1.91.html (Size: 62.07 KB / Downloads: 0)

Print this item

  Kfly's CQC Setup
Posted by: kfly - 01-11-2024, 01:32 PM - Forum: User Systems - No Replies

Figured I would post my CQC screens for all those DIY'ers out there....
Pretty self explanatory. Screen captures in menu(top menu) order
Current setup is Wall mounted iPad 2's

Templates:

.zip   Kfly CQC Templates Part 1 7-22-2021.zip (Size: 988.86 KB / Downloads: 2)

.zip   Kfly CQC Templates Part 2 7-22-2021.zip (Size: 78.6 KB / Downloads: 0)


[Image: WZuNOVT.jpg]

[Image: J786ea9.png]

Deck Lighting Template:
https://www.charmedquark.com/vb_forums/s...?tid=11197
[Image: iP6FLdj.jpg]

Awning Template:
https://www.charmedquark.com/vb_forums/s...?tid=11196
[Image: qFAyY0r.jpg]

[Image: ZrmU5S4.png]
Rainmachine Driver:
https://www.charmedquark.com/vb_forums/s...?tid=11057

[Image: h8Dj50c.png]

[Image: 0Oaufht.png]

[Image: iI8TzjN.png]

[Image: PWfWfsd.png]

[Image: tXf3Tpg.jpg]
TeslaFi Driver:

https://cqccommunity.com/showthread.php?tid=1

[Image: eqcX5P0.png]
Home Assistant Driver(MQTT)
https://cqccommunity.com/showthread.php?tid=5

Print this item

  Tesla Driver Driver
Posted by: kfly - 01-11-2024, 01:44 AM - Forum: Driver Development - No Replies

Finally got around to writing  a quick driver to interface with Tesla. I used the TeslaFi with aToken interface instead of the native Tesla api as there is lots of issues with polling your car and it not going to sleep. TeslaFi api seems to be very advanced and does a great job at letting the car go to sleep,  so I used it... Looks like TeslaFi polls the car every minute or two. CQC Driver updates every 30 seconds. TeslaFi limits all requests and commands to 3 data calls per minute but that should be enough.
Test Driver attached. All data fields are read only.

[Image: tXf3Tpg.jpg]



Attached Files
.cqcdrvpack   TeslaFi_1.5.CQCDrvPack (Size: 14.49 KB / Downloads: 1)
Print this item