Python hass.services.call options

Hi,
unfortunately there is little documentation about the python hass.services.call which, as I would understand, is the most import function if you want something to control from Python.

I got a script like

state= data.get('status')

service_data = {'topic': 'python/sonoff/cmnd/error', 'payload': '{}'.format(state)}

if state == "ON" :
	service_data = {'topic': 'python/sonoff/cmnd/rfkey5', 'payload': '{}'}
if state == "OFF" :
	service_data = {'topic': 'python/sonoff/cmnd/rfkey6', 'payload': '{}'}
		
hass.services.call("mqtt","publish",service_data, False)

service_data = {'entity_id': 'input_boolean.toggle_flurlicht', 'state': state}
hass.services.call("input_boolean", "turn_on", service_data, False)

The MQTT service is fine. But I want the change in on/off state reflected in my ''input_boolean.toggle_flurlicht" entity. I am not sure how to address this input_boolean with the service call?
The script above gives an error:

Error executing script: extra keys not allowed @ data[‘state’]

Thanks!