Read the statement by Michael Teeuw here.
MM current version on Raspberry Pi 5 cannot turn off monitor
-
@BKeyport i have been transitioning to Home Assistant for my home austomation platform.
and interesting idea being described for integrating older devices, like washing machine, is to monitor the power consumption with a smart plug… (I don’t know which do that in the US)
I wonder if the ps also has a lower consumption that can be measured and used as a trigger to turn off the smart switch when the power drops after pi shuts down…
i’ll have to try to find one of these outlets
maybe
https://www.amazon.com/gp/product/B08TNF4835/ref=ox_sc_act_title_4?smid=ATVPDKIKX0DER&psc=1 -
@sdetweil Get a Yo-Link Plug. They have an API, you get your API key from an advanced menu in their app. Their plugs do grab usage, I have not used the API to grab usage, just to turn on and off, and to get temperatures from their sensors. I then use the API in MM to display the temperatures.
https://www.amazon.com/s?k=yolink+smart+plug
The whole Yo-Link echo system is great for DIY folks in home automation. -
@jbat66 trying to find devices without host connections… get more/all local
-
@BKeyport the physical Mirror’s Power supply is the only thing I plug in, and the PI gets its power from USB from the display, so no extra power source to monitor.
I will probably just do a bash script to shut down the pi at some time say 10:00pm, then I will have Alexa shut down the mirror’s power (thus the pi as well) via a Yo-Link smart plug at 10:05pm. Then at sunrise via Amazon Alexa, I will just turn on mirror.
I already do this for my RV Starlink, since I have cell modem as a backup, I can use the internet to turn on and off my internet. lol
-
@sdetweil said in MM current version on Raspberry Pi 5 cannot turn off monitor:
@jbat66 trying to find devices without host connections… get more/all local
While the Yo-Link is great it is cloud and you can’t do local yet. They have been talking about it in their forums, however.
-
@sdetweil
I looked it up and you can get power readings via the API.
http://doc.yosmart.com/docs/yolinkapi/Outlet -
@jbat66 yeh gotta get a token for each I think
-
and interesting idea being described for integrating older devices, like washing machine, is to monitor the power consumption with a smart plug… (I don’t know which do that in the US)
thats exactly what I plan for my washing machine
I wonder if the pi also has a lower consumption that can be measured and used as a trigger to turn off the smart switch when the power drops after pi shuts down…
I ordered a smart plug from TuYa for this and tested this now with a raspberry pi 4.
When the pi is running:
After shutdown of the pi but red light of pi still on:
-
@karsten13 awesome. I hope my plug will be here today
-
@sdetweil So I ened up using a Yo-Link Plug, and it’s API. I have my monitor plugged into the Yo-Link Plug. I wrote a script that sets a delay time off to 1 minute for the monitor, and then 10 seconds later does a sudo power off command. So the pi shuts down gracefuly and then the monitor. The pi is powered from the usb connector on the monitor.