You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need that I can fire an event from automations that can act as a sensor.
The EC has its own sensors (duration and time reset) and it's time constrained.
I've tried to use activate
, but it's rising an error if the EC is constrained.
So I've modified the function in theentity_services.py to this
def async_entity_service_activate(self):
""" Activates the entity controller"""
if(self.model is None):
return
def async_entity_service_activate(self):
""" Activates the entity controller"""
if(self.model is None):
return
if self.model.is_idle() or self.model.is_active_timer() or self.model.is_blocked():
self.model.log.debug("Activating the Entity Controller")
self.model.set_context()
self.model.update(last_triggered_by="external_event")
self.model.sensor_on()
# self.model.activate()
And it looks it's working just fine.
Do you think that this can be the right way? I might add an async_entity_service_sensor_on just for that.
The text was updated successfully, but these errors were encountered:
Description
I need that I can fire an event from automations that can act as a sensor.
The EC has its own sensors (duration and time reset) and it's time constrained.
I've tried to use
activate
, but it's rising an error if the EC is constrained.
So I've modified the function in the
entity_services.py
to thisAnd it looks it's working just fine.
Do you think that this can be the right way? I might add an
async_entity_service_sensor_on
just for that.The text was updated successfully, but these errors were encountered: