rice92
(Rice92)
October 12, 2017, 2:02pm
1
Hey.
I am trying to make a service call from a custom component, to an input_select component.
What i tried is:
self.hass.services.call(“input_select”, “select_option”,
{“entity_id”: “input_select.optimisation_scenarios”, “option”: “grid_aligned_optimisation”})
I am pretty sure this should work, but somehow it doesn’t…
I tried to call the service from the Frontend with the same input and that works perfectly.
does somebody know what i’m doing wrong, and could point me in the right direction?
Would be greatly appreciated.
Thanks!
rice92
(Rice92)
October 12, 2017, 10:11pm
2
When i fire a ‘call_service’ event with the exact same data as i entered in the service call above it works!
Could this possibly be a Bug?
If so, whats the best way to report it/get it fixed?
event firing call below for reference;
self.hass.bus.async_fire(event_type=‘call_service’,
event_data={
‘domain’: domain_string,
‘service’: service_string,
‘service_data’: service_data_string,
‘service_call_id’: call_id})
danny
(Daniel Mason)
December 24, 2018, 6:07am
3
I have this same problem… post deserves more attention