@alex said in Feature Request: MQTT Support:
Bit late to the party, but I've only just got started with MQTT and automation.
If you're using Node-RED, you can use it to receive the data from f.lux with the built-in nodes.
I was inspired by this reddit thread - https://www.reddit.com/r/tasker/comments/a6q8vl/looking_for_better_mqtt_integration/ejrgl2l/ - which discusses Tasker, but the pertinent information is the post which describes using Node-RED and the "http in" node.
f.lux uses HTTP POST to send "?ct=xxxx&bri=x.xxxxxx" (replacing "x" with appropriate values). For example, "Working Late" sends "?ct=6500&bri=0.800000", while "Cave Painting" sends "?ct=2300&bri=0.800000".
The appropriate Node-RED objects for them are "msg.req.query.ct" and "msg.req.query.bri".
Looks like the "bri" values are computer-dependent. One of my computers sends "0.800000", but the one next to it sends "0.275000". Still, Node-RED captures both quite happily.