Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96123

How to read the next 4 characters from the last occasion of a string from a textfile?

$
0
0

@boneheadfraggle wrote:

I have a Zipato/Schlage Mini Keypad and I’m trying to get a hold of which user code was used for the arm/disarm.
I have found the string in the OZW_Log.txt that indicates the user code slot, so now I just need to find the string to make a sensor or attribute out of it.

At a certain state change, I want to search the OZW_Log.txt for "Received: 0x01, 0x10, 0x00, 0x04, 0x00, 0x06, 0x0a, 0x71, 0x05, 0x00, 0x00, 0x00, 0xff, 0x06, 0x06, 0x01, ", then grab the following 4 characters and put that in a sensor.

Any suggestions how to accomplish that?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>