String handling #103
Replies: 6 comments
-
|
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-09-07 15:59:46] So basically the point is you get a JSON message and you need to take out specific pieces out of it to store the information in different sensors (e.g. "SS" into a sensor and "1" into another sensor potentially). Is it the case? Thanks |
Beta Was this translation helpful? Give feedback.
-
|
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-09-07 16:11:44] When I receive "S" I have to store "1" When this would be possible I can use the button for arming, un-arming and killing the siren. |
Beta Was this translation helpful? Give feedback.
-
|
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-09-07 16:54:35] @eporocrail ok, I see two things needed to achieve it:
I'll let you know once the enhancement will be ready. |
Beta Was this translation helpful? Give feedback.
-
|
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-09-07 17:57:13] @user2684 |
Beta Was this translation helpful? Give feedback.
-
|
[This post has been migrated from the old forum, it was originally sent by user2684 on 2020-09-09 18:23:12] @eporocrail this should solve the first item listed above: https://forum.egeoffrey.com/topic/61/updates-for-egeoffrey-service-mqtt-and-egeoffrey-service-zigbee2mqtt |
Beta Was this translation helpful? Give feedback.
-
|
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-09-10 11:32:39] It is working. Only the single values "S", "SS", "SSS" and "L" are entering the sensor. By creating a constant with value "S", a variable with the "JSON sensor" and a rule which compares both I can set a separate sensor "ON". That is enough for my needs. Thanks a lot!!!!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
[This post has been migrated from the old forum, it was originally sent by eporocrail on 2020-09-07 15:41:58]
I am testing a portable button from "shelly". As such it is a nice thing 4.5 cm x 4.5 cm and 1.7 cm high. I would like to use it for arming my system.
It publishes a string. It contains 1, 2, 3 times an "S" when pushed the amount of S's. It contains an "L" when pushed long. At the end contains "end_count:" with a number. This number is not always the same.
How can I grab this string and extract the amount of times the button has been pushed or has been pushed longer?
Your advice please.

Beta Was this translation helpful? Give feedback.
All reactions