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

Execute script from another script?

$
0
0

@kol wrote:

I have a script and want it to be executed from another script. HA runs all services but never execute the service with script. (script.tvzone_turn_off). is it intentionally not allowed to avoid recursive calls? or I do something wrong?

sleep_all:
  alias: Sleep all equipment
  sequence:
    - service: switch.turn_off            
      data:
        entity_id: switch.rf3_switch_asus
    - service: script.tvzone_turn_off            
    - service: switch.turn_off            
      data:
        entity_id: switch.sonoffdual

Posts: 10

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95479

Trending Articles



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