Mask filter
#257
Replies: 3 comments 2 replies
|
If you could share the actual packet you want to mask, I can show you how to configure it. |
1 reply
|
If the packet is 0x03, 0x01, 0xD4, it can be configured as follows. Could you please upload your actual YAML? sensor:
- platform: uartex
name: "Temperature"
state: [0x03, 0x01]
state_number: |-
float value = (data[2] & 0x1F);
return value; |
1 reply
|
I asked for the YAML just in case, but I'm glad to hear it's working! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, first of all, thanks for your great job, very usefull to manage different UART frames.
just one issue regarding how to apply a mask on a sensor statement coz sometimes only one part of the byte is needed and so far I didn't find any solution with a standard format or lambda format. (not expert), so thanks for your help.
All reactions