Hello,
I am thinking about making strobe lights controller based on esp8266 board and set of relays.
So, I would like to increase possibilities to use esphome in my friend’s escaperoom facility. We are planning about next gadgets.
I would like to ask you for any opinions, and proper way of planning that.
I would simplify the description to 2 lamps, I am planning more, but will copy methods when I will know it
- 2 pieces of strobo (‘left’, ‘right’) lights with changeable patterns and sync possibility has 4 wires
+12v
GND
pattern change
sync - when connected to other lamp, both flashes same pattern. - I would like to control powering it, changing patterns and have possibility to syncing flash method.
- I bought 5 relays: 1,2nd for powering on each lamp differently, 3rd for changing pattern on ‘left’ lamp, 4th for changing pattern ‘right’ lamp, 5th - sync both of the lamps - connecting sync wire together.
- all relays will be connected in NO terminals.
- Main problem is with changing patterns, each lamp has 27 different patterns and after reapply the power it will start with pattern which was used before.
I am thinking how can I use action or any other in esphome - if that is possible to make any action with cycling (n) times to get know which light is currently turned on?
I have thought about: setting one pattern, and when I want to set 8th pattern - I am clicking one button in web_server and esphome doing all other magic - so it will close the relay 8 times (pattern wire with gnd). After that it should save that counter, and when I want to change the pattern it will close the relay - 2 times to get 10th pattern.
When I want switch off the lamp, before opening the 1st relay it should take the remaining 17 actions to change pattern to that one which should be starting one.
When power will be reapplied lamp pattern is in the same position as on the first action.
Would it be hard to made with esphome? I have heard about ‘actions’ feature maybe?
thank you for any help,
regards