-
Notifications
You must be signed in to change notification settings - Fork 7
Automations from text sensor #2
Comments
What you mean by that? The Text Sensor got new values and doesn't show them?
|
None of these 3 values update if the Old state is equal to the New State. Presence For example ID0 get a successful match now and a few seconds/minutes/hours later ID0 gets another match this is not updated. If a new match is received for ID1 for example then the update happens immediately. Their also seems to be no option for "force_update" for a "text_sensor" only "binary sensor" in esphome to update state when one is received regardless of the current value. Without getting an indication that the a state was received I see no way to create automations in HA other than using "events", or am I missing something? |
I haven't practically used my code. Just made it to help others. |
Neither of the 3 were working. Managed to get it working for all 3 by setting a default state after a response is received. Can now create various automations by using all 3 states . Without "userID" or the "Response" it is limited as Time Based conditions or other scenarios are not possible. Would have preferred using events and might look at it again but for now this works. If someone has an idea what the issue could be with events as per the intro that would be great to know.
|
For anyone interested I have designed a case for this: |
Great Design, thank you for sharing! |
Hi ,
Thanks for this integration it's really useful.
What seems like a simple issue I just cant spot it and probably will slap myself:) . Since the text sensors don't update the latest value to HA if different to previous I'm trying to use using a 'event' to to do this to use in HA automations:
Here is the code:
The event is firing but the value passed in data template is the lambda command string and not value:)
The text was updated successfully, but these errors were encountered: