stateEventName property

String stateEventName

Gets the name of the 'state' event to listen to if different than the default 'presence_state'.

Implementation

String get stateEventName {
  if (eventNames.containsKey('state')) return eventNames['state']!;
  return 'presence_state';
}