Bryan065

joined 7 months ago
[–] Bryan065@kbin.earth 1 points 2 days ago (2 children)

instead of sunshine, try apollo.

https://github.com/ClassicOldSong/Apollo

it's a branch of sunshine but supports virtual displays (and some other stuff).

i can launch moonlight on any of my clients (phone - 2316x1080, laptop - 2880x1800, laptop connected monitor - 2560x1440p) and the virtual monitor will spawn and match the client resolution automatically.

when I disconnect, the resolution will revert back to the desktop connected monitor.

this won't let you use your desktop while streaming games elsewhere though. You'll need to do VM's or Docker+wolf for something like that.

[–] Bryan065@kbin.earth 1 points 1 month ago (1 children)

nice! what's that first card you used for the home security?

[–] Bryan065@kbin.earth 1 points 3 months ago (1 children)

I was never able to get this to work properly... my mouse cursor always just disappears. 🙃

[–] Bryan065@kbin.earth 8 points 4 months ago (1 children)

i would probably do it with two+ automations. Something like:

ON automation:

  • trigger:
    • time pattern - beginning of every 3 hours
  • then:
    • start timer with duration 37 minutes (select your timer helper)
    • Turn on AC unit

OFF automation:

  • trigger:
    • Manual Event
      • event type: timer.finished (case sensitive!)
      • event data : entity_id: timer.[timer_helper_entity]
  • then:
    • turn off AC unit

STARTUP_CHECK automation:

  • trigger:
    • when home assistant is started
  • if:
    • state - timer helper is idle
    • AC is on
  • then:
    • turn AC off

Note 1: make sure the timer helper has restore state and time when HA starts enabled

note 2: automations using the timer.finished event will not trigger on startup if the timer expires when Home Assistant is not running.

note 2a: the third automation is for your edge case that you reboot/shutdown HA when the OFF automation was supposed to fire. it should ensure the AC turns off after the timer was supposed to be finished and HA is started. this automation does not account for if the AC is turned on manually and you restart HA.

i can get you the .YAML or pictures when I'm at a computer.