My personal configuration based on gl-e750-monitor repo using mqtt to publish data and alert messages to Home Assistant.
- Follow instructions in https://github.com/mazzz1y/gl-e750-monitor
- Place alert.sh and monitor.sh in a folder of your choice (e.g. /monitor) on the Mudi
- Make sure you give execution permission to both scripts
- Use this example configuration in your Home Assitant configuration.yaml:
# mqtt devices
mqtt:
sensor:
- name: "MCU Temperature"
unique_id: "mcu_t"
state_class: "measurement"
state_topic: "openwrt/mcu_t"
device_class: "temperature"
suggested_display_precision: 1
unit_of_measurement: "°C"
icon: "mdi:thermometer"
device: {"identifiers":"openwrt_mcu","name":"Openwrt MCU Monitor","sw_version":"1.0.0","manufacturer":"GL.iNET","model":"Mudi"}
- name: "Battery SoC"
unique_id: "mcu_b"
state_class: "measurement"
state_topic: "openwrt/mcu_b"
device_class: "battery"
suggested_display_precision: 0
unit_of_measurement: "%"
icon: "mdi:battery"
device: {"identifiers":"openwrt_mcu","name":"Openwrt MCU Monitor","sw_version":"1.0.0","manufacturer":"GL.iNET","model":"Mudi"}
- name: "Alert Message"
unique_id: "mudi_alert"
state_topic: "openwrt/alert"
device: {"identifiers":"openwrt_mcu","name":"Openwrt MCU Monitor","sw_version":"1.0.0","manufacturer":"GL.iNET","model":"Mudi"}
binary_sensor:
- name: "Battery State"
unique_id: "mcu_c"
state_topic: "openwrt/mcu_c"
device_class: "battery_charging"
payload_on: "1"
payload_off: "0"
icon: "mdi:battery-charging"
device: {"identifiers":"openwrt_mcu","name":"OpenWrt Monitor","sw_version":"1.0.0","manufacturer":"GL.iNET","model":"Mudi"}