gilesknap / maaspower

Provide MAAS power control via webhooks for various remote control power switches.
Apache License 2.0
18 stars 13 forks source link

Idea #23

Open ididitmyway opened 3 months ago

ididitmyway commented 3 months ago

If you have a great idea but it involves big changes, please file a ticket before making a pull request!

My idea would be to have a Powermode for Maaspower that send MQTT Messages and Topics to a Broker.

The idea behind is that you then can use Mosquitto to control devices over Microcontrollers, or also node-red on a raspberry pi. Or any other MQTT Client, like a Powershellscript on a Windows Server that then start and stopp Hyper-V VM´s.

Example

MAAS Config

Broker url : < your Broker > Topic : < MQTT Topic like "location/devicetype/mydevice1"> Message: < ON ,OFF >

Would this

fit the scope of the project ?

Kind Regards Ben3d

gilesknap commented 3 months ago

This sounds pretty good to me.

I don't know much about MQTT. But happy to look at PRs on this idea.