What does it do:
You can play TicTacToe with your bulbs in HomeAssistant.
What it looks like:
In HomeAssistant:
With the Bulbs:
- Working HomeAssistant installation (Supervised recommended)
- 9 Bulbs (RGB recommended)
- NodeRed (HomeAssistant integration recommended)
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
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:
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:
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
To zenofmud for his Tic-Tac-Toe Code where this project is based off.