We all know this scenario:
You want to control a device (actuator) or get some information from it (sensor) but the device is dumb.
The next step is to make it smart (DIY, esp8266) or to buy a smart version of it (smart light bulb, etc.)
But did you ever notice that the smartest device in your home cannot (easily) be connected to your smart home either?
I am talking about your PC (Windows, MAC, Linux)
Of cause there are ways like using the exec-Binding if openHAB is running on your Desktop or using some kind of SSH-magic to execute commands.
But I think it would be great if there was some kind of daemon/service that can be installed in the PC and offers a standard interface (like mqtt) to act as an actuator and sensor.
Information to publish to your smart home
- get information about the system (like monitoring)
- cpu load, RAM usage, disk usage, cpu temp
- get current states
- what programs are running?
- what program is in the forground
- restarting, shutting down, on, off
- user X is logged in
- lock screen active
Actions to subscribe to
- start program X
- lock screen
- shutdown/restart/suspend system
- execute custom commands
Possible use cases
- turn on monitor (via smart plug) if PC has been started
- turn off monitor if shutting down
- mute radio, turn on lights when Zoom app is active/in foreground
- or when webcam is activated
- shutdown PC when I am leaving home
I think mqtt would be the prefered protocol, because this could be used for other home automation software too and would not need a dedicated binding.
What do you think?
Would this be useful to you?
Any other ideas or hints?
I am not a developer.
So I am hoping someone would like this idea that much, he or she starts developing such an application.