RV MQTT Schema - ThisSmartHouse/mobile-command GitHub Wiki
Here is a documented list of all of the various MQTT topics and their purposes / values.
/rv/heartbeat
This is pinged by the RV HomeAssistant machine every minute, useful for monitoring connectivity in the real home's HomeAssistant
/rv/gps
The GPS location of the RV as provided by the GPS subsystem (RPi Zero W with a GPS / 2G modem attached)
{
"latitude" : 123.45,
"longitude" : 123.45,
"speed" : 123.45,
"sat_found" : 15,
"sat used" : 10,
"gps_accuracy" : 5
}
All ceiling LED lighting uses the HomeAssistant JSON schema for setting light values.
For each base state topic /rv/lights/bedroom
there is a corresponding /rv/lights/bedroom/set
to change the state.
/rv/lights/bedroom
/rv/lights/kitchen-sink
/rv/lights/kitchen-walkway
/rv/lights/kitchen-stove-1
/rv/lights/kitchen-stove-2
/rv/lights/bathroom
/rv/lights/livingroom-1
/rv/lights/livingroom-2
/rv/lights/office
/rv/lights/bar
/rv/sensors/motion/1
- Publishes detected
if motion was detected
/rv/sensors/tanks/fresh
/rv/sensors/tank/grey
/rv/sensors/tank/black
{
tank : 'fresh'
percent_full: 25
}
/rv/sensors/water-pressure
{
psi : 41.1
}
These are boolean sensors that indicate if a given circuit has AC power in order to determine what kind of AC power is available to the rig. Each topic pushes a { powered : true }
when AC power is detected.
/rv/sensors/power/50A1
- The 50A AC power sensor
/rv/sensors/power/50A2
- The 50A AC power sensor
/rv/sensors/power/30A
- The 30A AC power sensor
/rv/sensors/power/generator
- The Generator AC Power sensor
Monitors the temperature and relative humidity at various locations in the rig.
/rv/sensors/temp-rh/cabin
- Temp/Humidity inside of main cabin
/rv/sensors/temp-rh/bathroom
- Temp/Humidity inside of bathroom
/rv/sensors/temp-rh/water
- Temp/Humidity inside of water storage
/rv/sensors/temp-rh/outdoors
- Temp/Humidity outdoors
Publishes the charge data for the LiFeBlue 100AH LiFePo4 house batteries. The <address>
is the device address from Bluetooth. Requires an ESP32 running This Smart House LifeBlue-BLE Firmware
/rv/sensors/batteries/<address>
{
battery_id : '<address>', // Bluetooth Address
voltage : 13.2, // Voltage of Battery
current : 4000, // current in mA drawing from battery
ampHrs : 100000, // mAhs of charge remaining
soc : 95, // State of Charge (%)
temp : 23, // Temp of battery in C
status : 1234, // Bitmask of status
afeStatus : 1234, // afeStatus bitmask
cells : [ 1, 2, 3, 4], // Individual cell voltages
cycles : 10, // Charge cycles of battery
status: {
cell_high_voltage : false,
cell_low_voltage: false,
over_current_when_charge : false,
over_current_when_discharge : false,
low_temp_when_charge : false,
low_temp_when_discharge : false,
high_temp_when_charge : false,
high_temp_when_discharge: false,
short_circuited : false
}
}
/rv/input/keypad/[keypad num]
- Publishes which key was pressed on keypad, or H<key>
if key was held down