Ah, try installing the runtime linked in release notes!
I actually did but it balked on me since I had a later version already installed. I would have to uninstall that version (and break who knows what) in order to install the other version. ;/
Oh, that’s weird, do you remember the exact message it gave you?
Usually you can have different redistributable versions installed simultaneously (that’s why the dll name is versioned).
What if you try the x86 one?
So that worked perfectly. Here’s where we are at now.
In Mosquitto ::
carlo-ultra/monitor/all/power/state ON
That seems promising! I added more helpful error information to this version: https://www.dropbox.com/s/0kb3eyqpql9xsl3/screenmqtt-0.3.1-errors.exe?dl=0
Oh also, with what you have you should be able to at least control all of them at once by publishing to carlo-ultra/monitor/all/power/command
with ON
or OFF
. The current state of the monitor is reflected at carlo-ultra/monitor/all/power/state
.
This follows the MQTT Light component suggested topics.
So that TOTALLY WORKED!
Totally awesome! Really, that’s all I need. That’s awesome work @Smily!
Just need to be able to minimize it out of the way and you’re done! haha
Great Progress! https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/packages/triggers/mqtt_screens.yaml
Awesome that it worked! I guess the
/all
feature is the most useful of the bunch. I’m still interested why it errors out on detecting screens though.
I think I still need to make it more robust as I don’t believe it reconnects right now if it loses MQTT connection. That would probably be good to have before hiding it away
I was thinking of adding the possibility of running the app as a “Windows service”, which would make it run automatically all the time while Windows is running. I’m not sure how difficult that is to do though and I imagine I might have some issues accessing APIs from a service. (nssm looks cool at first glance)
Another way to do it with the current version would be adding a shortcut to run Hidden Start on startup and tell it to run the app without a console window (/NOCONSOLE
).
I could also make it run windowless by default or perhaps with a tray icon. That would however probably make it harder to run from a console, though I’m not sure how useful that is anyway.
Oh also, I just saw that you tried to use the lowercase off
, I should probably make that case-insensitive, huh?
Finally took some time to update this with the much needed reconnection functionality!
Lookie here, it’s screenmqtt 0.4.0!
For now I’m just running it as a task that starts on boot in task scheduler and it seems to work alright, but having it in the background without a console window would obviously be better. I looked into services a bit more, but it seems like too much effort for now
Thanks for your work on this! I use it as a kind of presence sensor to turn on/off a lamp in my office. Works perfectly.
Thanks again!
Hey, I’m glad you found it useful!
I’m still using it as well, but since I’ve been putting my PC to sleep, it has annoyed me that it stops working on resume. Have to fix that at some point!