LazeX7
(Lorenzo)
January 9, 2024, 7:36pm
1
Hello,
I created a small notification for my heater. In the notification it will display the current temperature, when I click on “run” I will recieve the notifications on my phone without a problem.
But when I save the automation, I will get the following error: Message malformed: extra keys not allowed @ data[‘for’]
This are my notifications:
123
(Taras)
January 9, 2024, 7:41pm
2
Because the only thing the Run command does is execute the automation’s actions. It doesn’t exercise the automation’s trigger or condition.
Where are you using the for
option in your automation? It’s not present in either of the screenshots you posted.
Post the entire automation in YAML format (not as a screenshot).
Reference
FAQ Guideline 11 - Format it properly.
FAQ Guideline 14 - Screenshots
LazeX7
(Lorenzo)
January 9, 2024, 8:32pm
3
mekaneck
(Rick Auch)
January 10, 2024, 12:18pm
4
Please read the links that Taras provided and then edit your reply so we can read it.
1 Like
I am having the same issue. Here is a picture of the automation, with the error at the top left:
Troon
(Troon)
June 13, 2024, 4:56pm
6
Post the entire YAML as correctly-formatted code.
It’s possible that the device trigger doesn’t support for
. Recommend changing to an entity-based state trigger.
Yes, this is the fix. I used an entity-based state trigger, and the duration worked
Tim6
(T. Spruijt)
December 9, 2024, 10:45am
8
Hello, I have the following issue with my Automation. When run it, I get:
extra keys not allowed @ data[‘temperature’]
Can you help me to solve this issue?
The Automation is as follows:
description: ""
trigger:
- platform: time
at: input_datetime.invoer_tijd_test
condition: []
action:
- service: number.set_value
data:
device_id: fef2fb734ec32de89ee7c1e125e243c2
temperature: 17.0
mode: single```
And the return I get:
Uitgevoerd op: 8 december 2024 om 19:55:04
Fout: extra keys not allowed @ data['temperature']
Resultaat:
params:
domain: number
service: set_value
service_data:
device_id: fef2fb734ec32de89ee7c1e125e243c2
temperature: 17
target: {}
running_script: false
1
2
3
4
⌄
data:
device_id: fef2fb734ec32de89ee7c1e125e243c2
temperature: 17
action: number.set_value
Troon
(Troon)
December 9, 2024, 11:06am
9
You can’t set the temperature of a number entity.
What is that device?
Tim6
(T. Spruijt)
December 9, 2024, 11:12am
10
That is smo40:
entity_id: number.smo_40_room_sensor_set_point_value_heating_climate_system_1
Troon
(Troon)
December 9, 2024, 11:20am
11
Then:
action:
- service: number.set_value
data:
value: 17
target:
entity_id: number.smo_40_room_sensor_set_point_value_heating_climate_system_1
or in current version (action > actions, service > action):
actions:
- action: number.set_value
data:
value: 17
target:
entity_id: number.smo_40_room_sensor_set_point_value_heating_climate_system_1
Either that, or you need to call climate.set_temperature
on your climate entity.
Tim6
(T. Spruijt)
December 9, 2024, 11:33am
12
Thanx for the information!
I will try the suggestions.
Tim6
(T. Spruijt)
December 9, 2024, 5:40pm
13
This works for me, but I get: running_script: false:
‘’'actions:
data:
value: 15
target:
entity_id: number.smo_40_room_sensor_set_point_value_heating_climate_system_1
action: number.set_value’‘’
Troon
(Troon)
December 9, 2024, 6:43pm
14
Tim6:
running_script: false:
That’s normal — the script isn’t running when you look.
Tim6
(T. Spruijt)
December 9, 2024, 6:52pm
15
Ok. I am happy that the issue is solved.
Tim6
(T. Spruijt)
December 10, 2024, 12:59pm
16
Hi Troon,
The problem with the extra keys is solved. The situation is that the Temperature is set immidiatly when I start the automation. What I like is that the Temperature is set at the set time. Do you have a solution for that?
Troon
(Troon)
December 10, 2024, 2:28pm
17
Please post the correctly-formatted YAML for the automation as it stands now.
What do you mean by “when I start the automation”?
Tim6
(T. Spruijt)
December 10, 2024, 3:14pm
18
When I start the entitycard:
‘’‘type: entity
entity: automation.verwarming_aan_op_gegeven_tijd
name: verw aan op tijd’‘’
Tim6
(T. Spruijt)
December 10, 2024, 3:15pm
19
Automation:
‘’'alias: Verwarming aan op gegeven tijd
description: “”
trigger:
platform: time
at: input_datetime.invoer_tijd_test
condition:
action:
service: number.set_value
data:
value: 15
target:
entity_id: number.smo_40_room_sensor_set_point_value_heating_climate_system_1
mode: single’‘’
Tim6
(T. Spruijt)
December 10, 2024, 3:20pm
20
alias: Verwarming aan op gegeven tijd
trigger:
- platform: time
at: input_datetime.invoer_tijd_test
condition: []
action:
- service: number.set_value
data:
value: 15
target:
entity_id: number.smo_40_room_sensor_set_point_value_heating_climate_system_1
mode: single