Home Assistant + Motion Sensor to Turn on/off FydeOS Display 🏠

Hi everyone,
I am using FydeOS on a miniPC connected to a touchscreen monitor to create a home management dashboard with Home Assistant (via browser) and to run some Android apps. I’d like to optimize power consumption by turning the screen on and off based on presence (or motion) detection in the room. :zap::man_walking:

I’d like to know if it’s possible to configure FydeOS to achieve the following:

  1. :large_blue_circle: Automatically turn on the monitor when presence is detected in the room (via a motion sensor integrated into Home Assistant).
  2. :red_circle: Turn off or put the monitor in standby mode when no activity is detected in the room for a certain period.
  3. :unlock: Automatically unlock the system and return to the last open screen without requiring a password or PIN when the monitor is reactivated.

Any advice or suggestions are highly appreciated! :pray:t3: If you have any documentation or resources that could help, I’d be very grateful if you could share them. Thanks in advance for your help! :blush:


As an alternative solution I had thought of connecting the monitor to a smart socket that turns it off and on based on the motion sensor, but I imagine I would risk ruining it.


Below are the links to the tools used, if they can be useful:

FydeOS doesn’t offer too many options in terms of power management and profiles, unfortunately.

To fine-tune monitor behaviour based on some system event would require editing the source code so that’s on the openFyde realm.

To achieve what you described you will probably need some additional hardware as a “relay” or “switch”. Then you can utilise the Linux subsystem as a little server to communicate with this switch based on your desired events. You mentioned you already have HA running somewhere, the logic can happen on there too.

Thanks for the reply Alpha. Unfortunately I don’t have enough programming skills to be able to modify the source code.

And I also discovered that by unplugging the monitor it still remains slightly powered by a second USB cable connected to the MiniPC, which is used to make the touch function work, and the monitor turns off and on flashing continuously. So the option of the smart socket or the relay to manage the monitor does not seem viable to me.

An alternative… :point_down:t3::question:

Is it possible to set the screen timeout time? :stopwatch::computer: From the settings (Settings > System Preferences > Power) I noticed that you can only choose between “Sleep”, “Turn off display” and “Keep display on”, but it doesn’t let me define the countdown time.

If I could at least set it to GO INTO STANDBY AFTER 1 MINUTE OF INACTIVITY I would just have to click the power button on the MiniPC to reactivate it, and that would already be a good achievement!

Thanks!

:point_up: try this with the “Sunset” mode and see if it works

you don’t get to set the exact minute to turn off the display, it’s around 5 - 15 minutes iirc, but it will turn off eventually and the system will still be functioning (won’t go to sleep)