diff --git a/includes/packages/router.yaml b/includes/packages/router.yaml index 1063207..89e38b7 100644 --- a/includes/packages/router.yaml +++ b/includes/packages/router.yaml @@ -95,7 +95,7 @@ router: event_type: telegram_callback condition: - condition: template - value_template: "{{ trigger.event.data.data | regex_findfirst_index('wrt_cb_on') >= 0 }}" + value_template: "{{ 'wrt_cb_on' in trigger.event.data.data }}" action: - variables: chat_id: "{{ trigger.event.data.data.split('|')[1] }}" @@ -122,7 +122,7 @@ router: event_type: telegram_callback condition: - condition: template - value_template: "{{ trigger.event.data.data | regex_findfirst_index('wrt_cb_off') >= 0 }}" + value_template: "{{ 'wrt_cb_off' in trigger.event.data.data }}" action: - variables: chat_id: "{{ trigger.event.data.data.split('|')[1] }}"