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

Script not working

$
0
0

@jaraeez wrote:

I’m in the process of moving to the latest HA install which I now have installed & running ( 0.106.5) This is coming from an old install (0.72) where I’m now in the process of integrating my old working configs into the new install.

I have issues at the moment with two scripts where they are showing the same error when I do a test

Error executing script script.weather. Invalid data for call_service at pos 1: must contain at least one of entity_id, area_id.

The above error is from the below script which use to work

weather.yaml

alias: Weather
sequence:
  - service: remote.send_command
    data:
      command: Mute
      device: 52435888
  
  - service: tts.google_translate_say
    data_template:
      entity_id: media_player.kitchen_home
      message: >
        {% if now().strftime("%H")|int < 12 %}
        Good morning.
        {% elif now().strftime("%H")|int < 18 %}
        Good afternoon.
        {% else %}
        Good evening.
        {% endif %}
        It's currently {{states.sensor.dark_sky_summary.state}} outdoors and {{states.sensor.temperature_158d0001e58873.state|round}} degrees indoors. Today will be {{states.sensor.dark_sky_hourly_summary.state|replace(".", "")}}, with a high of {{states.sensor.dark_sky_daytime_high_temperature.state|round}} degrees in Mansfield.
  - delay:
      seconds: 15

  - service: remote.send_command
    data:
      command: Mute
      device: 52435888

Any help would be appreciated.

Thanks

Posts: 12

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



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