0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-12 04:38:06 +00:00
packages/utils/mqttled/files/mqttled.config
Tom Grime c1a96acc35 mqttled: update to 0.1.2
Signed-off-by: Tom Grime <tom.grime@gmail.com>
2022-08-16 13:11:31 -07:00

45 lines
1.4 KiB
Plaintext

config mqtt 'mqtt'
#MQTT Broker Address
option host '192.168.1.1'
option port '1883'
#May work without this, should bind to all interfaces. Needs to be an interface matching in /etc/config/network
option interface 'lan'
option username ''
option password ''
#Not tested
option tls '0'
option cert ''
option discovery 'homeassistant'
#Set your topic here: e.g. OpenWRTleds/CustomDevice/led1
option basetopic 'OpenWRTleds'
option subtopic 'CustomDevice'
#Reported in the 'device' page in Home Assistant
option model 'OpenWRT Device'
config leds 'leds'
#Setting this to 1 will ignore any includes
option includeall '1'
#excluded LEDs will allways be supressed
list exclude 'mt76-phy0'
list exclude 'rt2800soc-phy1::assoc'
list exclude 'rt2800soc-phy1::quality'
list exclude 'rt2800soc-phy1::radio'
#list include 'blue:internet'
config rgb 'rgb'
# Exposes 3 LEDs to HomeAssistant as a single RGB LED
option enablergb '0'
# The name of the RGB LED to expose to HomeAssistant
option name 'RGB'
# The IDs of the three colored LEDs
option red 'LED0_Red'
option green 'LED0_Green'
option blue 'LED0_Blue'
config trigger 'triggers'
#Only triggers listed here will be presented to HA as 'effects'
list triggers 'none'
list triggers 'default-on'
list triggers 'heartbeat'
list triggers 'timer'