Как я уже писал ранее, создание "девайса" в Peper UI и полное заполнение полей i2c датчика не приводят ни к чему. ОН, в таком случае ограничивается Updating Megadevice things...
При заполнении без параметров, В Дебаге получаем
Код: Выделить всё
Updating Megadevice things... http://192.168.1.114/sec/?pt=8&cmd=get - input string-> temp:26.08/press:752.44/hum:43.479
Скормив данную строку в Pepre UI этому каналу в ручную, в events логе видим изменение значения Items'a
Код: Выделить всё
- Item 'Bmx_Raw_FF_Office' received command temp:24.06/press:752.40/hum:54.474 Bmx_Raw_FF_Office changed from NULL to temp:24.06/press:752.40/hum:54.474
Код: Выделить всё
rule "HTU_Raw_FF_Office" when Item Bmx_Raw_FF_Office received update then var Bmx_Raw = Bmx_Raw_FF_Office.state.toString().split("/") val Temper = Bmx_Raw.get(0).toString().split(":") val Press = Bmx_Raw.get(1).toString().split(":") val Humid = Bmx_Raw.get(2).toString().split(":") postUpdate(Temperature_FF_Office, parse(Temper.get(1))) postUpdate(Pressure_FF_Office, parse(Press.get(1))) postUpdate(Humidity_FF_Office, parse(Humid.get(1))) end
и Дебаг говорит, что руки кривые:
Код: Выделить всё
[ERROR] [.script.engine.ScriptExecutionThread] - Rule 'HTU_Raw_FF_Office': Invalid format: "22.06" is malformed at ".06"