Comfort Automation/ Security System Forums

Full Version: Comfort2MQTT with Home Assistant Part 5 - Battery & DC Voltages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For the upcoming Comfort with ARM processor, the Battery and  Charger DC Volatge levels can be displayed n the Dashboard. 








Threshold values are internally defined as per below and will output a log message accordingly.
Battery Voltage Levels:
  • voltage > 15: # Critical Overcharge
  • voltage > 14.6: # Overcharge
  • voltage <= 9.5: # Battery Flat
  • voltage < 11.5: # Discharged
Charger Voltage Levels:
  • voltage > 18.0: # Critical Overcharge
  • voltage > 17.0 : # Overcharge
  • voltage <= 7.0 : # Critical Low Charge or No Charge
  • voltage < 12.0 : # Low Charge
When activating this automation on an ARM Comfort mainboard then the following two responses are received from Comfort. The first is for Battery voltage and the second for the Charger voltage expressed as an 8-bit value. The formulas for voltage calculation, using the examples below, are:
Code:
Battery Voltage = 196/255 * 15.5V = 11.91V Charger Voltage = 199/255 * (3.3/2.71) * 15V = 14.25V

2024-08-08 19:07:37 DEBUG    D?0101C4 2024-08-08 19:07:39 DEBUG    D?0102C7
To enabled this, go to Settings > Automations and Scenes  >Automations.
Create Automation:
When:  Select Time Pattern > select an interval eg every hour as below;




And If: selectDevice = Comfort ii Ultra,
Condition Comfort II Ultr Lan Status is Connected





Then Do: Actions >perform an action
select  MQTT Publish  Topic comfort2mqttalarmbattery_update
Payload =0



Payload \"0\" means for Comfort and  all Connected Slaves.
Payload \"1\" means Comfort Only.

Press Save and name it eg Comfort battery Update Voltage
To see the Charger and Battery Voltage status on the dashboard, go to the Dash board, select the Pen icon  on top right to Edit, press add Card on bottom right.

Which Card would you like to Add ?
select By Entity

select the entities 




select Comfort II Ultra Battery Status and Comfort II Charge Status, then Press Continue, and acceot the suggestion given by Home Assistant