I have bought this modem StarTech.com USB56KEMH2 … I am very new to this. I just want to replace the Echo Connect that amazon discontinued. IPreformatted text
think I need to create an automation. I have already installed HACS & have alexa media setup. I see my alexa devices. I saw that the entity of the modem is sensor.modem_callerid_ed4ac8c91cd73c3ddc783d7741affdb9 — I just want an automation that if my home phone is ringing the caller id is passed to the alexa devices and anounced (Like Panasonic phone talking caller id) I borrowed someone script and modified it to this & I keep getting an error stating ((( Message malformed: extra keys not allowed @ data[‘service’] ))))
service: notify.alexa_media
data:
target:
- media_player.spare_room_echo_spot
- media_player.spare_room_echo_show
- media_player.kitchen_echo_show
title: Incoming Call
message: >
{% set caller_info = states(‘sensor.modem_callerid_ed4ac8c91cd73c3ddc783d7741affdb9’) %}
{% if caller_info is match(“\d+$”) %}
Incoming call from {{ caller_info | regex_replace(find=‘(\d)’, replace=‘\1 ‘, ignorecase=False) }}
{% else %}
{% set parts = caller_info.split(’ ‘) %}
{% set name = parts[:-1] | join(’ ‘) %}
{% set number = parts[-1] %}
Incoming call from {{ name }} {{ number | regex_replace(find=’(\d)’, replace='\1 ', ignorecase=False) }}
{% endif %}
data:
method: all
type: announce