Error calling HA service switch

Hello I’m trying to call service action from eshome but I dont get it
I have a switch in HA with entity_id switch.reles201.

This is my code for a sensor

on_value:
 then:
  - homeassistant.service:
     service: switch_turn_on
     data:
       entity_id: switch.reles201

All compile ok but when it run, in the logs show this error:
Fatal error: protocol.data_recived() call failed
ValueError: not enough values to unpack (expected 2, got 1)

I think that is necesary another data for the call bu I dont find documentation

Can somebody help me? I’m a newbie :wink: Thanks

Should be service: switch.turn_on

Thanks nickrout. it works, i feel stupid. :slight_smile:

1 Like