Hey there,
i want to integrate a Button with mushroom that calls a service.
the script is in my scripts.yaml file but when i press the button i get an error message which is:
Dienst input_datetime.buro_manual_start_time_plus hat den Dienst script.buro_manual_start_heating_set_time_script_plus aufgerufen, der nicht gefunden wurde.
i allready searched several hours but did not find my mistake that causes the error.
Does anyone of you see the problem in my code?
I am relatively new to HA and yaml code and i realy appreciate any help.
Thanks in advance
Michael
type: custom:stack-in-card
cards:
- type: custom:mushroom-entity-card
entity: input_boolean.buro_manual_start_enable
fill_container: false
secondary_info: none
name: Büro Heizstart
- type: custom:mushroom-chips-card
chips:
- type: template
icon: mdi:minus
tap_action:
action: call-service
service: script.buro_manual_start_heating_set_time_script_minus
- type: template
entity: input_datetime.buro_manual_start_time
content: >-
{{(state_attr('input_datetime.buro_manual_start_time','timestamp')) |
timestamp_custom('%H:%M', false) }}
- type: template
icon: mdi:plus
tap_action:
action: call-service
service: script.buro_manual_start_heating_set_time_script_plus
alignment: center
card_mod:
style: |
ha-card {
margin: 0px 12px 12px;
--chip-background: rgba(var(--rgb-disabled), 0.15);
--chip-box-shadow: none;
--chip-border-radius: 12px;
--chip-height: 42px;
--chip-padding: 24px;
}
buro_manual_start_heating_set_time_script_minus:
sequence:
service: input_datetime.buro_manual_start_time_minus
data:
time: >-
{{as_timestamp(as_datetime(state_attr('input_datetime.buro_manual_start_time','timestamp'))
+ timedelta(minutes=-15))| timestamp_custom('%H:%M', false) }}
target:
entity_id: input_datetimr.buro_manual_start_time
buro_manual_start_heating_set_time_script_plus:
sequence:
service: input_datetime.buro_manual_start_time_plus
data:
time: >-
{{as_timestamp(as_datetime(state_attr('input_datetime.buro_manual_start_time','timestamp'))
+ timedelta(minutes=+15))| timestamp_custom('%H:%M', false) }}
target:
entity_id: input_datetime.buro_manual_start_time