-
Platform information:
- Hardware: Raspberry Pi 3
- OS: Openhabian 2.5.0-1
- Java Runtime Environment: OpenJDK Runtime Environment (Zulu8.40.0.178-CA-linux_aarch32hf) (build 1.8.0_222-b178)
- openHAB version: 2.5.0 Release Build
-
Please post configurations (if applicable):
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
- Services configuration related to the issue
-
If logs where generated please post these here using code fences:
Rule
val info = transform("MAP", "scenes.map", "wit").split("$")
logInfo("mqtt", "gScene received command: " + info.get(0))
Map
wit = 3$Scheme$0$Speed$10$White$100
warm = 4$Scheme$0$Speed$10$White$100$Color$32,64,100
party = 2$Scheme$4$Speed$5
Log
2019-12-28 19:08:01.058 [INFO ] [.eclipse.smarthome.model.script.mqtt] - gScene received command: 3$Scheme$0$Speed$10$White$100
I would expect output of 3, instead I get the entire line.
I used this post as starting point.