executeService method

Future<bool> executeService(
  1. String entityId,
  2. String action, {
  3. Map<String, dynamic> additionalActions = const {},
})

Executes the provided action on the given Home Assistant Service.

entityId is the entity to execute the service on. Returns a bool indicating whether the service call was successful. The action and additionalActions parameter is the Entity.attributes value for the service

Implementation

Future<bool> executeService(
  String entityId,
  String action, {
  Map<String, dynamic> additionalActions = const {},
}) =>
    _api.executeService(entityId, action, additionalActions: additionalActions);