Skip to content

dajefo/TicTacAlc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 

Repository files navigation

TicTacAlc

What does it do:
You can play TicTacToe with your bulbs in HomeAssistant.


What it looks like:
In HomeAssistant:


With the Bulbs:



Stuff you need

  • Working HomeAssistant installation (Supervised recommended)
  • 9 Bulbs (RGB recommended)
  • NodeRed (HomeAssistant integration recommended)


Home Assistant

Use my HA code from here: Code

You have to add a few helpers for it: (or use you own ones)

  • input_boolean.tictacalc_clear
  • input_boolean.tictacalc_locked
  • input_boolean.tictacalc_rgb_1_r
  • input_boolean.tictacalc_rgb_1_g
  • input_boolean.tictacalc_rgb_1_b
  • input_boolean.tictacalc_rgb_2_r
  • input_boolean.tictacalc_rgb_2_g
  • input_boolean.tictacalc_rgb_2_b
  • input_boolean.tictacalc_text

You have to adjust the variables for your bulbs, mine were:

  • light.arduino_section_1
  • light.arduino_section_2
  • light.arduino_section_3
  • light.arduino_section_4
  • light.arduino_section_5
  • light.arduino_section_6
  • light.arduino_section_7
  • light.arduino_section_8
  • light.arduino_section_9


NodeRed

Use my NodeRed code from here: Code

If you use my helpers and my light entitys, it should recocnize all of them.
If you want to use your own ones instead, you have to change the nodes in the picture below:



Localization

Most strings are defined in Homeassistant, you have to edit them there.
For P1 wins, P2 wins draw and clear you have to edit a Node in NodeRed


Edit the "winner" node:


Edit the strings in the pic:



Extra

If you use the ESPHome Integration, you can setup some cool stuff too on it.
Use my ESPHome code from here: Code
With this code you get some effects for your arduino board like wled, e131 (ledfx) and some effects (rainbow, color wipe, fireworks, etc.)


Video:
https://www.youtube.com/watch?v=Uw4Wjl6XLXY

Credits

To zenofmud for his Tic-Tac-Toe Code where this project is based off.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published