Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run_recipes_script:
- alias: "Run Recipe Script"
- sequence:
- - service: command_line
- data:
- command: "python3 /config/python_scripts/get_recipes.py {{ states('input_text.recipe_tag') }}"
- update_bookmark_sensor:
- alias: "Update Recipe Sensor"
- sequence:
- - service: homeassistant.update_entity
- target:
- entity_id: sensor.recipe_sensor_2
- send_recipe_notification:
- alias: "Send Recipe Notification"
- sequence:
- - service: notify.sreejith
- data:
- message: >
- {% set file_path = '/config/www/recipe_script_output.json' %}
- {% set content = (states('sensor.recipe_script_output') or 'No content') %}
- {{ content }}
- turn_on_recipe_switch:
- alias: "Turn On Recipe Switch"
- sequence:
- - service: input_boolean.turn_on
- entity_id: input_boolean.recipe_switch
- turn_off_recipe_switch:
- alias: "Turn Off Recipe Switch"
- sequence:
- - service: input_boolean.turn_off
- entity_id: input_boolean.recipe_switch
Advertisement
Add Comment
Please, Sign In to add comment