Device Status from Computed Attributes

yomue 4 years ago

7E0200004B78003100080200F000000000022000000000000000000000000000000000210409065550D4012DD502017A300119310100F9020006FE0400000004FD0901CC00000010922866EF014A0B080138383838383865A27E

Am trying to read the value of an 0B event in computed attributes, is this possible? I would just need direction

yomue 4 years ago

7E0200004579100500000300C2000000002034000201588E2206CA3AC2001200000000200728095409D40164D502019C3
00119310104FE0401DE0CF4FD0901CC000AC30C0C2866EF014ADA030000030B0100847E
If theres a way in computed attributes i could do that, that would be awesome

Anton Tananaev 4 years ago

That's not what computed attributes are for. You should probably just update the code to decode that parameter, if it's not decoded currently.

yomue 4 years ago

position.set(Position.KEY_FLAGS, BitUtil.check(status, 20));
position.set(Position.KEY_ARMED, BitUtil.check(status, 21));

Am trying to check the status of bit 20 and 21, but the armed and flag dont show up in the attributes