Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. TV on/off monitor using TV USB port

TV on/off monitor using TV USB port

Scheduled Pinned Locked Moved Hardware
12 Posts 6 Posters 115 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mfalkviddM mfalkvidd

    Welcome to the forum @tomvanderputte

    The TPS2051BDVR can deliver 500mA according to https://www.digikey.com/product-detail/en/texas-instruments/TPS2051BDBVR/296-21265-1-ND/1219985 so powering the Arduino and radio should be fine.

    T Offline
    T Offline
    tomvanderputte
    wrote on last edited by
    #3

    @mfalkvidd awesome thanks! So would it make sense to take this active approach? Or a more passive approach with external power, and to map the +5v fro the usb port to one of the gpio to sense the on/off status? That way it could send the actual status to the gateway.

    mfalkviddM sundberg84S 2 Replies Last reply
    1
    • T tomvanderputte

      @mfalkvidd awesome thanks! So would it make sense to take this active approach? Or a more passive approach with external power, and to map the +5v fro the usb port to one of the gpio to sense the on/off status? That way it could send the actual status to the gateway.

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #4

      @tomvanderputte both approaches probably work.

      An alternative could be to clip a current sensor around the power supply for the TV. Doing that would probably make it possible to sense whether the tv is on, in standby or completely off. something like https://www.sparkfun.com/products/11005

      If the tv has a led showing its status, you could use a LDR to measure it.

      1 Reply Last reply
      0
      • T tomvanderputte

        @mfalkvidd awesome thanks! So would it make sense to take this active approach? Or a more passive approach with external power, and to map the +5v fro the usb port to one of the gpio to sense the on/off status? That way it could send the actual status to the gateway.

        sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by
        #5

        @tomvanderputte - some service port announces events on the data lines. You could use this to (if they are present) to determine if the tv is on or off and send a binary sensor. The issue with the ping approach is the amount of traffic, in balance with some lag in the update on your sensor. I guess you dont want to ping the tv every second and therefore it might be some time before your controller sense your power goes off - and this might cause issue if you want to use the sensor in any automation.

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        1 Reply Last reply
        1
        • T Offline
          T Offline
          tomvanderputte
          wrote on last edited by
          #6

          Thanks everyone for the suggestions, I'll consider my options!

          parachutesjP 1 Reply Last reply
          0
          • T tomvanderputte

            Thanks everyone for the suggestions, I'll consider my options!

            parachutesjP Offline
            parachutesjP Offline
            parachutesj
            wrote on last edited by
            #7

            @tomvanderputte
            I don‘t like the idea of shutting off the node once USB power turns off... but you could use the Expire-Binding in OH for finding out.
            I‘d rather mount a photo cell to the front LED (if it turns off once powerded on) or on a scart interface, you could sense power once turned on. Or of course the USB if it turns on/off.

            T 1 Reply Last reply
            0
            • parachutesjP parachutesj

              @tomvanderputte
              I don‘t like the idea of shutting off the node once USB power turns off... but you could use the Expire-Binding in OH for finding out.
              I‘d rather mount a photo cell to the front LED (if it turns off once powerded on) or on a scart interface, you could sense power once turned on. Or of course the USB if it turns on/off.

              T Offline
              T Offline
              tomvanderputte
              wrote on last edited by
              #8

              @parachutesj is from a design perspective that you don't like it? Or because it can actually damage the node?

              I like the expire binding, thanks for the tip. The ldr is usable, but for estethic reasons I'll see if I can find a different solution, thanks.

              parachutesjP 1 Reply Last reply
              0
              • rvendrameR Offline
                rvendrameR Offline
                rvendrame
                Hero Member
                wrote on last edited by
                #9

                Just brainstorming: a Door/Window sensor with 2xAA batteries may last ~2 years, if you remove the led and regulator. You just need to connect the USB - to GND and USB + to D3 via a diode.

                Another option is to replace the 2xAA by a small lithium battery, with one of these cheap TP4056 charger boards, so the USB from TV will keep the battery charged. You just need to connect +VCC (from the USB connector side) to D3 via a diode.

                https://www.aliexpress.com/w/wholesale-board-tp4056.html
                https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20200427084513&SearchText=small+lithium

                Home Assistant / Vera Plus UI7
                ESP8266 GW + mySensors 2.3.2
                Alexa / Google Home

                parachutesjP 1 Reply Last reply
                1
                • T tomvanderputte

                  @parachutesj is from a design perspective that you don't like it? Or because it can actually damage the node?

                  I like the expire binding, thanks for the tip. The ldr is usable, but for estethic reasons I'll see if I can find a different solution, thanks.

                  parachutesjP Offline
                  parachutesjP Offline
                  parachutesj
                  wrote on last edited by
                  #10

                  @tomvanderputte I don‘t think it will harm the hardware if it powers down. I just don‘t like „to be out of control“. You don‘t know if it powered down or just dropped a heartbeat. Also I do some things in the evening once the TV powers down. This will obvious be delayed if you just kill the node and for traffic pollution you should not send updates to often.

                  1 Reply Last reply
                  0
                  • rvendrameR rvendrame

                    Just brainstorming: a Door/Window sensor with 2xAA batteries may last ~2 years, if you remove the led and regulator. You just need to connect the USB - to GND and USB + to D3 via a diode.

                    Another option is to replace the 2xAA by a small lithium battery, with one of these cheap TP4056 charger boards, so the USB from TV will keep the battery charged. You just need to connect +VCC (from the USB connector side) to D3 via a diode.

                    https://www.aliexpress.com/w/wholesale-board-tp4056.html
                    https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20200427084513&SearchText=small+lithium

                    parachutesjP Offline
                    parachutesjP Offline
                    parachutesj
                    wrote on last edited by
                    #11

                    @rvendrame battery powered should work. Always sleep and only wake on change. My door/window sensors run ‚since forever‘ on the first battery.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      Jeremyyyy
                      wrote on last edited by
                      #12

                      Sometimes though, you may experience problems if your monitor or TV screen is set to disable USB power during standby. Monitors and TVs can often switch to standby very quickly if they don’t find an active source of content, and devices can often not turn on without power, causing a bit of a chicken and egg scenario. Add to this the fact that your device may be at the back of your monitor or TV in a spot that is hard to reach and you may find yourself in quite a frustrating scenario quite quickly.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      18

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular