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

Script to send sms no longer working

$
0
0

@AwesomeGuyNamedMatt wrote:

I am in the process of transferring my HA configuration to a new server and cleaning things up along the way. I had a script that would send an SMS using the Joaoapps Join component. The script should send the information from a sensor I create called sensor.shopping_list. I know the Joaoapps component is working correctly because I can send a simple text, but it fails if I try to send Template Data. The following script worked in my previous HA install but now fails.

send_shopping_list_via_sms:
  alias: Text Shopping List
  sequence:
  - service: joaoapps_join.myphone_send_sms
    data_template:
      number: 8675309
      message: 'Shopping List:
                                     
        {{ states(''sensor.shopping_list'') }}'

The following errors appear in the log:

  • can only concatenate str (not “int”) to str
  • can only concatenate str (not “dict”) to str
  • can only concatenate str (not “NoneType”) to str
  • can only concatenate str (not “int”) to str

previous HA instance was: 0.106.6
New instance is: 0.107.0

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95960

Trending Articles



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