Beginner here, trying to do my initial setup, and I am having a hard time differentiating between using automation, script, scene or another component. Here is one setup I am trying to configure:
Every weekday morning at 6 am, only run if group.household home
TV Power on - Picture Mode
If TV is on {% if is_state(‘binary_sensor.ping_mb_vizio_tv’, ‘on’) %}
Call service remote.send_command, send 4 commands to
iTach IP2IR (Changes picture mode)
If TV is not on
Turn it on
Run same commands above (changes picture mode)
Change Channel on DirecTV to News
Wait 5 minutes
Set Receiver to -40 Volume
Turn on Receiver Zone 2
Where I am confused is 1. Do I use Automation for above, and call scripts? If so, how do I set conditions for certain actions vs. condition for all?
Thank you for your replies, however, I am not quite sure on how to incorporate the TV on/off based on the examples. The ping sensor tells me if it is on or off, and based on that, it would send command to turn on (if it’s off) or not send anything if it’s already on. So I would need that as well as group.household = home
Yes it’s a toggle, and the On/Off works, but it doesn’t know the TV state due to it being IR, which is why I have the ping sensor. For example, if the TV is already On, but an automation also runs to turn it on, it will turn it off instead, since it doesn’t know it’s already on.