Page 1 of 1

Other than the default MQTT template not working for actuators (OpenHUB protocol)

Posted: 07 Mar 2016, 11:20
by wutu
If I have:
Subscribe Template: myhome/firstfloor/office/%sysname%/#
Publish Template: myhome/firstfloor/office/%sysname%/%tskname%/%valname%

Published data can be performed properly.

But when attempting to use actuator. Message arrives to ESP, but nothing happens.
And whether it's the actuator is configured or not.

If I send: mosquitto_pub -t "myhome/firstfloor/office/wemosd1r2/pwm/15" -m "48"

serial console show:
MQTT : Topic: myhome/firstfloor/office/wemosd1r2/pwm/15
MQTT : Payload: 48

I do some mistake somewhere?

Re: Other than the default MQTT template not working for actuators (OpenHUB protocol)

Posted: 07 Mar 2016, 17:44
by tozett
wich firmware version (R078..) are u using?

Re: Other than the default MQTT template not working for actuators (OpenHUB protocol)

Posted: 07 Mar 2016, 19:07
by wutu
I use github version, now R83

Re: Other than the default MQTT template not working for actuators (OpenHUB protocol)

Posted: 07 Mar 2016, 22:03
by tozett
dont know exactly how to help, but maybe you want to have a look here for inspiration?
http://www.esp8266.nu/forum/viewtopic.php?f=4&t=808

Re: Other than the default MQTT template not working for actuators (OpenHUB protocol)

Posted: 08 Mar 2016, 09:51
by Martinus
Bug confirmed. Current openhab MQTT version only works with the default template.
Will be fixed in R84

Re: Other than the default MQTT template not working for actuators (OpenHUB protocol)

Posted: 09 Mar 2016, 08:18
by wutu
Hello Martinus.
Thanks for the quick fix. Everything works as it should.

Just one observation:

If the switch is set to:
myhome/firstfloor/office/esp01/mcpgpio/3
Sends status only when first using the switch.

When I change it to:
myhome/firstfloor/office/esp01/mcpgpio/state
everything is alright

thanks again