Advertisement
sreejith2904

configuration.yaml

Sep 2nd, 2024
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.99 KB | None | 0 0
  1. command_line:
  2.   - sensor:
  3.       name: Recipe Sensor
  4.       unique_id: 575e2cce-206c-4886-9c15-ff89e43b57fd
  5.       command: "python3 /config/python_scripts/get_recipes.py {{ states('input_text.recipe\
  6. _tag') }}"
  7.       scan_interval: 10800  # Update interval in seconds
  8.       value_template: '{{ value_json["URL_1"] }}'
  9.       json_attributes:
  10.        - Title_1
  11.         - URL_1
  12.         - Description_1
  13.         - Title_2
  14.         - URL_2
  15.         - Description_2
  16.         - Title_3
  17.         - URL_3
  18.         - Description_3
  19.   - sensor:
  20.       name: Recipe Script Output
  21.       unique_id: df03df65-f84c-48e4-bd2e-6ef469648f35
  22.       command: "cat /config/www/recipe_script_output.json"
  23.       scan_interval: 10800  # Update interval in seconds
  24. shell_command:
  25.   run_recipe_script: "python3 /config/python_scripts/get_recipes.py {{ tag }}"
  26. input_text:
  27.   recipe_tag:
  28.     name: Recipe Tag
  29.     initial: "dessert"
  30.     max: 100
  31. input_boolean:
  32.   recipe_switch:
  33.     name: Recipe Switch State
  34.     initial: off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement