Arcade Automation with Home Assistant - Share your YAML here!

wow. that is awesome. is it a pain to get the marquees as the pic? I need to update mine asap!
eh, I think that depends on how picky you are lol. I had to make all the images were the same size, and make a dim version and bright version for each (that might be unnecessary, but not sure how to do it natively if it's possible). But, it's not difficult. Just a little time consuming.

You can slap any'ol image in as long as it's under HA's size limitations, but to me it looks weird if they're not uniform.
 
With the right sensors, yes. ESP@Home allows you to basically wire up whatever custom sensor you want and use it as a Home Assistant input. In this case, a voltage sensor.
AND if you're using an ESP32 you get the added benefit of using it for presence detection. Might be a little tricky to dial in, but in theory you could do stuff like have specific lighting or playlist if you're at X machine longer than Y time.
 
ok, oh boy. I can see my OCD kicking in hard on this. I will probably go down a similar path to yours with the bright and dim. I really like that approach.
I did this when I first set up home assistant for our arcade.

I turned away from it for a couple reasons
  • It isn't immediately clear what's ON and what's OFF - with a large grid of marquees, the dim/no dim was difficult. I ultimately made all the OFF marquees Black and White to resolve this.
  • It's more annoying to maintain with a bunch of games, especially if they have weird marquees, like pinball backglasses, Mappy, or Gauntlet. Adding stuff just takes longer.
 
Wow, and here I am over here flipping switches like a caveman
This new, fancy automation technology stuff is all well and good... but I'm stuck in the 80's. Hell, I've somehow become that old guy that has trouble figuring out the new TV and DVR remotes, smh.

Saying this because I'm jealous and inept. Such a cool setup for these enlightened folks! :ROFLMAO:
 
So.... If you can sensor DC voltages. Could you monitor dv voltages on a Atari deflection board then have a script power down the game if it goes out of spec?
 
So.... If you can sensor DC voltages. Could you monitor dv voltages on a Atari deflection board then have a script power down the game if it goes out of spec?
Technically yes.

It would be faster to have whatever hardware you're using to do that detection also so the shutdown though.
 
So.... If you can sensor DC voltages. Could you monitor dv voltages on a Atari deflection board then have a script power down the game if it goes out of spec?
Absolutely. I think you'd have a harder time finding something you couldn't do with HA. @64B1T is right tho, for something critical you want as little latency as possible with as high fault tolerance as possible.
Like, if you had the worlds most rare and unreplaceable deflection board, you'd want to do the logic at the hardware (arduino, esp32, raspberry pi, something like that), and just let HA do the notification/after actions if it saw it happen.
 
You guys have some serious HA setups!

I have it too - but not like that..

For arcade - I have an automation that I can run 2 ways. I use it for repair power cycle testing

30 min on - 60 min off - 16 cycles (24 hours)
10 min on - 10 min off - 60 cycles

The 60 cycle one I use when a board set has been failing with power on/off. or if I don't trust the high score save..
My machines I turn on the old fashioned way :(
 
My meetings this afternoon got cancelled, so I worked on this some more and sorted a better way to do the marquee buttons. I really wasn't happy with them...

Now we're here:
1719526564615.png

If you'd like to repeat this -
  • Install button-card from HACS
  • Create the images - I used Gimp:
    • Made sure they were all the same size (I used 1000x333)
    • Made two images per marquee, one for "on" and one for "off", On being bright, and Off being darkened (You can do this in HA with `background-blend-mode: darken;`, but I'd already done the work with the images)
    • uploaded them to the HA server at config/www/images/
  • Yaml for the button:
YAML:
type: custom:button-card
entity: switch.arcade_bank_2_satan_s_hollow
show_name: false
show_icon: false
show_entity_picture: true
size: 50%
styles:
  card:
    - height: 150px
    - background-repeat: no-repeat
    - background-size: cover
    - background-position: center
    - background-color: transparent
    - background-image: |
        [[[
           if (states["switch.arcade_bank_2_satan_s_hollow"].state != 'on') return 'url("/local/images/SHollow_Button_Off.jpg")'
           else return 'url("/local/images/SHollow_Button_On.jpg")'
        ]]]



When things are on, we get some power data (I don't have Goblins or Gate of Doom yet, but maybe this can will them into existence):
1719527187815.png

And how it looks with some things on, and some things off:
1719527990033.png

The Power Up button is using the Cyberpunk 2077 theme and just runs a script that announces on the google home with text to speech, powers things on one at a time with an 8 second delay between them keep the house happy and sets the lights to the Arcade Scene.
Power Down nukes from orbit, as it's the only way to be sure, but I think I'll sequence that so it's more cool.​
 
Last edited:
now what we need here is a complete list, including direct links to amazon, for all the products y'all are using! the HA stuff, the ESP@HOME, the KASA stuff, all the things! make it happen. do it.
 
I still want to get this setup for the arcade, but I need to integrate it into my existing HomeKit setup. The first attempt was a disaster, but I was probably holding it wrong and just need to do more research.
 
Back
Top Bottom