28.03.2025, 13:14
(28.03.2025, 13:11)admin Wrote: Remove JSON value path, use this Input script:It works, really thank you.
Code:local map = { idle = 0, call = 1, presence = 2, unhooked = 3, assistance = 4, emergency = 5, technical = 6, speech = 7, } local msg = json.pdecode(payload) if type(msg) == 'table' then local status = msg.data[1].status return map[ status ] end