Open fedemox opened 1 year ago
Can you upgrade to the 20221224 release, as just before that release a bug in the area of finding a task by name was fixed, that may be the cause of this issue.
ESP_Easy_mega_20221224_collection_A_ESP8266_4M1M
is listed in the description as tested.
Failed also with C014 - Controller - Homie MQTT convention
& P033 - Generic - Dummy Device
.
Same behaviour:
374010: C014 : MQTT received: /set: N: dummyfan V: dummyspeed INVALID MSG
@fedemox Have you been able to configure your Homie receiver task so it will receive your values?
No. Same behaviour on firmware ESP_Easy_mega_20230822_collection_A_ESP8266_4M1M.bin
@fedemox I've done some work on MQTT controllers and the Homie receiver (with the intent to add Homie receiver support to all MQTT controllers), can you test the last successful GH Actions run for that PR?
Half success! Now the controller acknowledges the received command, but its value isn't passed to the device. Every minute the rule (see above) is triggered, but parameters are 0/empty.
212628 : Info : WD : Uptime 4 ConnectFailures 0 FreeMem 20120 WiFiStatus 3 ESPeasy internal wifi status: Conn. IP Init
217639 : Info : C014 : MQTT received: /set: N: fan V: speed cmd: OK
241072 : Info : EVENT: Clock#Time=Mon,18:18
241278 : Info : P086 : Value 1:
241279 : Info : P086 : Value 2:
241280 : Info : P086 : Value 3:
241281 : Info : P086 : Value 4:
241286 : Info : EVENT: fan#speed
241290 : Info : ACT : LogEntry,"ND, ND"
241292 : Info : ND, ND
241294 : Info : ACT : PWM,13,0,0,50
241296 : Info : PWM : GPIO: 13 duty: 0 f: 50 Hz
241299 : Info : ACT : homieValueSet,1,1,0
241302 : Info : P086 : deviceNr: 1 valueNr: 1 valueType: 0 integer/float set to 0.00
241305 : Info : C014 : homie acknowledge: fan taskIndex:1 valueNr:1 valueName:speed valueType:0 topic:homie/Collection_A/fan/speed valueInt:0 valueStr:0 success!
241313 : Info : EVENT: fan#
241316 : Info : EVENT: fan#
241318 : Info : EVENT: fan#
242628 : Info : WD : Uptime 4 ConnectFailures 0 FreeMem 20120 WiFiStatus 3 ESPeasy internal wifi status: Conn. IP Init
Checklist
I have...
ESP_Easy_mega-20181001_test_ESP8266_4096_VCC.bin
)Steps already tried...
.bin
files are included in the ZIP)If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS!
Summarize of the problem/feature request
I'd like to control a brushless fan driven by a ESC, providing PWM signal at 50Hz on pin 13. Successfully tested command
PWM,13,value,0,50
with integer values from 11 to 30 (3D printed fan is super scary at high speed!!). Successfully tested with controllerC005 - Home Assistant (openHAB) MQTT
&P033 - Generic - Dummy Device
. Successfully tested CMD and GPIO set of controller C014 (Homie). Failed test withC014 - Controller - Homie MQTT convention
&P086 - Generic - Homie receiver
.Expected behavior
Controller algorithm should not discard properly formatted MQTT command.
Actual behavior
MQTT messages on topic
homie/ESPeasySerever/fan/speed/set
are always flagged as INVALID MSG and ignored.Steps to reproduce
homie/ESPeasySerever/fan/speed/set
the value11
C014 : MQTT received: /set: N: fan V: speed INVALID MSG
System configuration
Hardware: NodeMCU Amica V2 ESP8266 ESP-12F (amazon.it)
ESP Easy version: released binaries with names
ESP_Easy_mega_20221105_collection_A_ESP8266_4M1M.bin
ESP_Easy_mega_20221224_collection_A_ESP8266_4M1M.bin
ESP Easy settings/screenshots:
192.168.1.113
(tested alsotest.mosquitto.org
andbroker.hivemq.com
)1883
%sysname%
(--->ESPeasyServer
)homie/%sysname%/#
(prefilled value was rejected by every broker)homie/%sysname%/%tskname%/%valname%
Device:fan
speed
integer
0
everything else untouchedRules or log data
Rules:
Log record:
sysinfo.pdf