I want to create a button that changes label according to the MQTT state of a device, and also triggers a different payload for each corresponding label
Something like
status topic : /servers/esxi01/restoreMode
trigger topic : /servers/esxi01/toggleMode
if status is stayOff > Label is stayOff > Payload for Trigger is restoreState
if status is restoreState > Label is restoreState > Payload for Trigger is forceOn
if status is forceOn > Label is forceOn > Payload for trigger is stayOff
I’ve created a circuit to basically act as the BIOS based power management for chinese mobo’s that don’t have a full fledged BIOS, which continuously reads the PC power LED status and does one of the above three actions in case of power loss.
Help is appreciated.