A decorative cube that controls your home

I forked your sources and enhance a few things.

  1. It’s based on routine like yours.
  2. I implemented the autorefresh for the current position.
  3. I also added the contact action (I have a base with a magnet to trigger an action if the cube is on the base or not).
  4. I simplify the orientation logic (more readable)
2 Likes