Sensor calling a service through template

Hi!

There is any way in order to create a sensor which call a service through value template?
Something like:

- platform: mqtt
  state_topic: "tele/RF_Bridge/RESULT"
  name: "Testing"
  value_template: >
    {% if value_json.RfReceived.Data == '81CD4E'  %}{% "CALL SERVICE SET.VARIABLE" %}{% endif %}
  qos: 2

The value_template is for extracting values, not executing services.

1 Like

Thank you!