🏠 Configuration Guide - Home Assistant

Integrate your IntelliAGS with Home Assistant for smart home control, monitoring, and automations.

📋 Requirements

Before setting up the Home Assistant integration, ensure you have:

  • Home Assistant installed and running (any installation method)
  • MQTT Broker - Mosquitto add-on recommended (or external broker)
  • IntelliAGS configured in Mode 2 (Web + MQTT)
  • Network connectivity between IntelliAGS and Home Assistant
💡 Recommended: Use the Mosquitto broker add-on in Home Assistant for the simplest setup. It integrates directly with the MQTT integration.

🔧 MQTT Broker Setup

If you don't already have an MQTT broker, follow these steps to install Mosquitto:

Install Mosquitto Add-on

  1. In Home Assistant, go to Settings → Add-ons → Add-on Store
  2. Search for "Mosquitto broker" and click on it
  3. Click Install and wait for installation to complete
  4. Go to the Configuration tab and add a user:
    logins: - username: intelliags password: your_secure_password
  5. Click Start to run the broker
  6. Enable Start on boot and Watchdog

Configure MQTT Integration

  1. Go to Settings → Devices & Services → Add Integration
  2. Search for "MQTT" and select it
  3. If using Mosquitto add-on, it should auto-discover - click Submit
  4. Otherwise, enter broker details manually (usually localhost:1883)

⚙️ IntelliAGS MQTT Configuration

Configure your IntelliAGS to connect to the MQTT broker:

Via Web Interface

  1. Access your IntelliAGS web interface at http://intelliags.local
  2. Navigate to Settings
  3. Set Operation Mode to 2 (Web + MQTT)
  4. Enter your MQTT broker settings:
    Setting Value
    MQTT Broker IP address of Home Assistant (e.g., 192.168.1.100)
    MQTT Port 1883 (default)
    MQTT Username intelliags (as configured in Mosquitto)
    MQTT Password Your secure password
  5. Click Save Settings
  6. The device will reconnect with MQTT enabled
💡 Tip: Check the OLED display - the NET label will turn cyan when MQTT is connected successfully.

🔍 Auto-Discovery

IntelliAGS uses Home Assistant's MQTT auto-discovery feature. Once connected, entities appear automatically!

Discovery Process

  1. IntelliAGS connects to MQTT broker
  2. Publishes ~70 discovery messages to homeassistant/ topics
  3. Home Assistant creates entities automatically
  4. Device appears under Settings → Devices & Services → MQTT

Discovery Topics

homeassistant/sensor/intelliags_{MAC}/battery/config homeassistant/sensor/intelliags_{MAC}/oil_pressure/config homeassistant/sensor/intelliags_{MAC}/coolant_temp/config homeassistant/button/intelliags_{MAC}/start/config homeassistant/button/intelliags_{MAC}/stop/config ...
⚠️ Note: Discovery may take 10-30 seconds after MQTT connection. If entities don't appear, check the MQTT integration logs in Home Assistant.

📊 Available Entities

IntelliAGS exposes 52-55 entities to Home Assistant via MQTT auto-discovery. Entity IDs use the format sensor.intelliags_{entity}.

Sensors (17-20)

Entity ID Name Unit Category
state Generator State - -
battery_voltage Battery Voltage V -
coolant_temp Coolant Temp °C -
ambient_temp Ambient Temp °C -
tach_rpm Tach RPM RPM -
fuel_level Fuel Level % -
oil_pressure Oil Pressure PSI -
charger_voltage Charger Voltage V -
charger_frequency Charger Frequency Hz -
charger_state Charger Status - -
run_hours Total Run Hours h -
session_runtime Session Runtime - -
alert Alert - -
gateway_version Firmware Gateway - diagnostic
controller_version Firmware Controller - diagnostic
sd_storage SD Storage Free % diagnostic
internal_health Internal Health - diagnostic

Binary Sensors (1)

Entity ID Name Icon
remote_start Remote Start Request mdi:restart

Switches - Controls (7)

Entity ID Name Icon
start Generator Start mdi:power
preheat Block Heater mdi:fire
glowplug Glow Plugs mdi:flash
fuelcut Fuel Flow mdi:valve
fuelpump Fuel Pump mdi:water-pump
crank Crank Relay mdi:rotate-right
charger Charger Enable mdi:power-plug

Switches - Configuration (3)

Entity ID Name Icon Category
remote_start_enable Remote Start Enable mdi:toggle-switch config
sd_logging SD Data Logging mdi:micro-sd diagnostic
charger_on_boot Charger On Boot mdi:power-plug config

Numbers - Configuration (17)

Entity ID Name Range Unit
cfg_battery Min Battery 8.0 - 14.5 V
cfg_fuel Min Fuel Level 0 - 100 %
cfg_max_coolant Max Coolant Temp 40 - 150 °C
cfg_glow_skip GP Skip Temp 0 - 50 °C
cfg_preheat_target Preheat Start Temp 0 - 60 °C
cfg_max_preheat Preheat Stop Temp 0 - 60 °C
cfg_preheat_time Preheat Max Time 0 - 480 min
cfg_oil_pressure Min Oil Pressure Run 0 - 115 PSI
cfg_max_oil_pressure Max Oil Pressure 3 - 115 PSI
cfg_preglow_time GP Preglow Time 0 - 60 sec
cfg_preglow_duty GP Preglow Duty 0 - 100 %
cfg_postglow_time GP Postglow Time 0 - 600 sec
cfg_postglow_duty GP Postglow Duty 0 - 100 %
cfg_crank_time Crank Max Time 500 - 15000 ms
cfg_min_rpm Min Running RPM 200 - 1800 RPM
cfg_oil_pressure_threshold Min Oil Pressure Start 0 - 115 PSI
cfg_retry_limit Crank Retry Limit 1 - 10 -

Selects - Configuration (3)

Entity ID Name Options
cfg_timezone Timezone 17 timezone options with DST
cfg_preheat_relay Block Heater Relay Type Internal, External
cfg_remote_polarity Remote Start Polarity LOW (ON), HIGH (ON)

Read-Only Configuration (1)

Entity ID Name Note
gp_mode_status GP Mode PWM or SmartGlow (read-only, requires recalibration to change)

Buttons (4)

Entity ID Name Icon Category
save_settings Save Settings mdi:content-save config
clear_sd Clear Data Log mdi:trash-can diagnostic
clear_error_log Clear Error Log mdi:trash-can-outline diagnostic
fwupdate Firmware Update mdi:update diagnostic

Entity Summary

Entity Type Count
Sensors 17
Binary Sensors 1
Switches (Controls) 7
Switches (Config) 3
Numbers 17
Selects 3
Buttons 4
Total 52

📡 MQTT Topics

For advanced users who want to interact directly with MQTT:

Topic Structure

home/ags/{MAC}/ → Base topic (MAC lowercase, no colons) home/ags/{MAC}/{sensor_id} → Sensor data home/ags/{MAC}/{control_id}/state → Control state home/ags/{MAC}/{control_id}/set → Control command home/ags/{MAC}/config/{setting_id} → Config state home/ags/{MAC}/config/{setting_id}/set → Config command home/ags/{MAC}/{button_id}/press → Button command

Example Topics

For a device with MAC 123456789abc:

Topic Description
home/ags/123456789abc/battery_voltage ← Sensor data (voltage value)
home/ags/123456789abc/state ← Sensor data (IDLE, RUNNING, etc.)
home/ags/123456789abc/start/state ← Switch state
home/ags/123456789abc/start/set → Switch command (ON/OFF)
home/ags/123456789abc/config/cfg_battery ← Config value
home/ags/123456789abc/config/cfg_battery/set → Config command
home/ags/123456789abc/fwupdate/press → Button press (trigger OTA)

🤖 Example Automations

Here are some useful automation examples for your IntelliAGS:

Auto-Start on Low Battery

Auto-Stop on Full Battery

Fault Alert Notification

Low Fuel Warning

📱 Dashboard Card Example

This advanced dashboard card provides a comprehensive generator overview with gauges, status indicators, and controls. Requires button-card, stack-in-card, and card-mod custom components from HACS.

Home Assistant IntelliAGS Dashboard Example

Required HACS Components

Install these custom components via HACS before using the dashboard:

  • button-card - Custom button styling and states
  • stack-in-card - Nest cards within cards
  • card-mod - Custom CSS styling for cards
💡 Tip: The firmware update button uses hold_action to prevent accidental updates. Hold the cloud icon to trigger an OTA check.

🔧 Troubleshooting

Entities Not Appearing

Issue Solution
No entities after connection Wait 30 seconds for discovery to complete. Check MQTT integration logs.
OLED NET label not cyan MQTT not connected. Verify broker IP, port, username, and password.
Discovery messages not received Check that Mosquitto allows the user. Review mosquitto.log.

Connection Issues

Issue Solution
Frequent disconnections Check WiFi signal strength. Consider Ethernet connection.
Authentication failed Verify MQTT username/password match Mosquitto configuration.
Broker unreachable Ensure MQTT port 1883 is not blocked by firewall.

MQTT Debug

To monitor MQTT traffic, use an MQTT client like MQTT Explorer or subscribe to all topics:

mosquitto_sub -h localhost -u intelliags -P password -t "home/ags/#" -v
← Back to Documentation