Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Esp8226 + Broadlink - TV state automation

$
0
0

@henaa wrote:

Hi
I have some issue I create ping request to show if the TV on or off
I used esp8226 with tasmosta and Broadlink
In the configuration.yaml this my code

binary_sensor:
  - platform: ping
    name: "living room tv state"
    host: 192.168.1.38
    count: 1
    scan_interval: 5

I create some Good night automation

- id: '1578133636557'
  alias: Good Night
  description: ''
  trigger:
  - entity_id: binary_sensor.switch_158d00027bf8e8
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: switch.living_room_tv_fused
    service: switch.turn_off

The problem if the TV turn on its wotk good but if the TV is turn off and i used the automation its turn on the TV

what you suggest to fix this isuue?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>