Bit of a strange one this - I’ve made a simple script, but when I try to open the script to edit it, I get a blank screen. This happens on the web and in the iOS app. I can duplicate the script, which enables me to edit it and save a new version, but all new versions I’ve saved also can’t open, they also go to a blank screen. But my other scripts open fine! Has anyone ever had this bug and can anyone shed any light on how I might be able to fix it please? I’m on macOS and Firefox & Safari, and iOS app.
Thank you!
maybe paste here the script contents?
You must have altered configuration.yaml. Can you please post it’s contents?
Thanks both. The script is as follows:
alias: Night fade down 3 (Duplicate)
sequence:
- repeat:
count: 10
sequence: null
- repeat:
sequence:
- delay:
hours: 0
minutes: 0
seconds: 60
milliseconds: 0
- data:
volume_level: "{{ state_attr('media_player.daphne', 'volume_level') - 0.01 }}"
target:
entity_id: media_player.daphne
action: media_player.volume_set
while:
- condition: numeric_state
entity_id: media_player.daphne
attribute: volume_level
above: 0
- action: media_player.media_stop
metadata: {}
data: {}
target:
entity_id: media_player.daphne
mode: restart
icon: mdi:weather-night
description: ""
The configuration.yaml is as follows:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
media_player:
- platform: cambridge_cxn
host: 192.168.14.11
name: Cambridge CXN
# - platform: bluesound
# hosts:
# - host: Daphne.local
influxdb:
api_version: 2
ssl: false
host: 192.168.14.2
port: 8086
token: b4UAVI5NUhnpanxvptlaJfH-AEr9zH0LVyCvjrhotEyQD_Sm4TMbDMl6OJl_d9C0aoaqi50nn3i56dm_whsyQw==
organization: timonium
bucket: book 1
tags_attributes: friendly_name
include:
entities:
- sensor.oreithyia_atmospheric_pressure
- sensor.oreithyia_carbon_dioxide
- sensor.oreithyia_humidity
- sensor.oreithyia_pm2_5
- sensor.oreithyia_radon
- sensor.oreithyia_temperature
- sensor.oreithyia_vocs
- sensor.home_outdoor_temperature
- sensor.home_solar_percentage
- sensor.home_heating
- sensor.home_humidity
- sensor.home_temperature
- sensor.home_tado_mode_2
- sensor.leto_temperature
- sensor.leto_humidity
That part isn’t valid
1 Like
Amazing. Deleting that, it works again. Thank you - I hadn’t managed to check the yaml because of how hard it was to access it (having to duplicate the script then edit in yaml). Thanks very much.