Is my dumb Photo Frame on or off?

Recently I bought a cheap photoframe with usb to display some pictures in a slideshow. I added an esp32 with esphome next to it out of sight and can turn it on and off via IR.

Using:

remote_transmitter:
  pin: GPIO16
  carrier_duty_percent: 50%

#remote_receiver:
#  pin: GPIO17
#  dump: all

button:
  - platform: template
    name: Picture Frame -  Power Button
    on_press:
      - remote_transmitter.transmit_pronto:
          data: 
            "0000 006D 0022 0000 015B 00AF 0015 0043 0015 0017 0015 0017 0015 0017 0015 0017 0015 0017 0015 0017 0015 0017 0015 0016 0016 0042 0015 0043 0015 0042 0015 0042 0015 0042 0015 0042 0015 0043 0015 0017 0015 0017 0015 0017 0015 0016 0015 0017 0015 0017 0015 0016 0015 0017 0015 0043 0015 0042 0015 0043 0015 0042 0016 0043 0015 0042 0015 0042 0015 0043 0015 0181"

It works really well.

But once in a while is “misses” a command and then on is off and off is on.

I need a solution to detect if it is on or off… it has a power adapter but powerconsumption would be very low I presume.

Any thoughts on how to detect this?

An outlet that detects power usage?

Yes got that running but it is “another” wifi device. Hopes to get a solution within the esp32 with ir (2in1). Light sensor or something else, whatever works :slight_smile: