Page 1 of 1

RULES Command unknown

Posted: 14 Sep 2021, 13:41
by edstobi
Hi
I am running an espeasy
Build:⋄ 20114 - Mega32
System Libraries:⋄ ESP32 SDK v3.3.5-1-g85c43024c

I have a running Display - OLED SSD1306/SH1106 Framed
Name: OLED
the first line at Display is empty to take the infos from rules
Line 2 and 3 are provid plant information from DS2018


Generic - MQTT Import
Name OLED_INFO
Value cmdMQTT
is working

The rules is

Code: Select all

on OLED_INFO#cmdMQTT=1 do
  Publish %sysname%/IP,%ip% // I am alive and this is my address
  OLED,1,1, [OLED_INFO#Value3] Wasser wird gefordert
endon
the publish is ok
for OLED it get an error

13545470: ACT : OLED,1,1, 31.2 Wasser wird gefordert
13545477: Command unknown: OLED,1,1, 31.2 Wasser wird gefordert

Please show me the error in my rules.
THX

Re: RULES Command unknown

Posted: 14 Sep 2021, 13:44
by Ath
The commands for OledFramed plugin are called 'OledFramedCmd' : https://espeasy.readthedocs.io/en/lates ... #p036-page

And because you are using spaces in the text, also need to be wrapped in quotes:

Code: Select all

on OLED_INFO#cmdMQTT=1 do
  Publish %sysname%/IP,%ip% // I am alive and this is my address
  OLEDframedcmd,1,1,"[OLED_INFO#Value3] Wasser wird gefordert"
endon

Re: RULES Command unknown

Posted: 14 Sep 2021, 13:58
by edstobi
THX
Problem solved
:D