infinity-mirror

Example code for a smart infinity mirror! Okay, so first of all, here’s some credits:

And here’s the fourm discussion: https://community.home-assistant.io/t/212410?u=ktibow

Okay, now for some pictures: ![Screenshot of full control in HA](/infinity-mirror/rsz_2020-07-17-140729_1920x1080_scrot.png) ![Picture of screen](/infinity-mirror/IMG_20200717_141543.jpg) ![Picture of infinity mirror](/infinity-mirror/IMG_20200717_141323.jpg)

Now let’s go to the parts.

  1. (Only tested on) HelTec Wifi Kit 32
  2. Any USB cable
  3. Any breadboard
  4. Any couple male-to-male jumper wires
  5. (Only tested on) LED strip
  6. (Only tested on) Infinity mirror to hack

Okay, let’s do this.

Pry apart the infinity mirror

Bottom

  1. First, remove the battery base. Do that by pushing apart the bottom part, and while you do that, pull away the battery holder.
  2. Disconnect all of the wires. Just pull/chop them off.
  3. Push out the stuff. You might need to push on some stuff really hard in order to push out the switch and power plug.
  4. Make the hole between the base and top bigger for the light strip connector.

Note: Don’t put the battery base back on, not even later.

Middle

  1. Pry off the coverings. The mirror is made of 3 parts, the middle, and the two covers. Pry off the glue.
  2. Pull off one of the mirrors. Be very gentle, or you’ll have a scratched-up mirror like I do.
  3. Detach the provided light strip. Just pull off the adhesive.

    Cut and place the light strip

  4. Place the light strip around the mirror.
  5. Find which side is the input and output of the LED strip, and cut off any excess. It’s okay to cut off the other connector, too.
  6. Count the number of LEDs in the strip.
  7. Peel off the adhesive backing and place the light strip. Make sure to put the connector through the hole you made earlier.
  8. Route the connector through the light switch hole.

Yahoo! You’ve done most of the hardware.

Set up the connections

  1. Find your WiFi Kit 32.
  2. Place it in the middle of your breadboard.
  3. If the header’s aren’t soldered on yet, solder them on now.
  4. Put one wire at pin 5. Put the other two at 5V and GND.
  5. Put the pin 5 wire to the middle, green wire of the connector.
  6. Put the 5V wire to the red wire of the connector, and the GND wire to the white wire of the connector.

    Set up Home Assistant

  7. Add the Local IP integration using the GUI.
  8. Add these input_number helpers:
    • input_number.mirror_brightness
      • Name: Mirror Brightness
      • Icon: mdi:mirror
      • Max value: 255
      • Leave everything else
    • input_number.hue
      • Name: Hue
      • Icon: mdi:mirror
      • Max value: 255
      • Leave everything else
    • input_number.saturation
      • Name: Saturation
      • Icon: mdi:mirror
      • Max value: 255
      • Leave everything else
  9. Add these input_select helpers:
    • input_select.mirror_force_weather
      • Name: Mirror force weather
      • Icon: mdi:mirror
      • Options:
    • clear_night
    • cloudy
    • fog
    • lightning
    • storm
    • storm_night
    • mostly_cloudy
    • mostly_cloudy_night
    • heavy_rain
    • rainy
    • snowy
    • mixed_rain
    • sunny

</details>

</details>

</details>