Read the statement by Michael Teeuw here.
MMM-KitchenTimer - Touch-friendly countdown timer
-
@Niggich so
trigger.payload.remainingSeconds
-
@sdetweil No, it is not working.
-
@Niggich sorry, this is case sensitive and I had lower case s, see my edit
-
@sdetweil No, it’s not working. This is the automation
alias: MagicMirror kitchen timer started triggers: - trigger: mqtt topic: magicmirror/kitchen-timer/started actions: - action: media_player.play_media target: entity_id: media_player.echo_show_kuche data: media: media_content_id: >- set a timer for {{ trigger.payload.remainingSeconds | int }} seconds media_content_type: custom metadata: {} -
@Niggich if you examine the traces , what error is reported?
-
if you examine the traces , what error is reported?
This Error is shown: “Error rendering data template: UndefinedError: ‘str object’ has no attribute ‘remainingSeconds’”
When I change the trigger back to
trigger.payload_json.remainingSecondsis no Error reported an the Echo asks for how long should be the timer.The traces-Log says this.
params: domain: media_player service: play_media service_data: entity_id: - media_player.echo_show_kuche media_content_type: custom media_content_id: set a timer for 60 seconds target: entity_id: - media_player.echo_show_kuche running_script: false -
@Niggich ok. Good info
I need to test this myself, but won’t be able to til tomorrow sometime. I also need to use my echo device which is currently not used
-
@sdetweil Ok, don’t worry. I’m happy you help me. Thank you!
EDIT:
I made a copy of the automation and put a custom number of seconds to trigger. The Echo still asks for how long. The I changed from seconds to minutes an the timer starts.
EDIT2: When I change the trigger to German language like this
starte einen {{ trigger.payload_json.remainingSeconds | int }} sekunden timerthe Timer starts. The only thing is that the Echo almost 4 seconds need to start the timer. -
@Niggich awesome feedback
-
@sdetweil Yeah that’s great. Do you an Idea for the delay between Mirror an Echo?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login