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

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
wutu
Normal user
Posts: 35
Joined: 05 Feb 2016, 07:33

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

#1 Post by wutu » 07 Mar 2016, 11:20

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?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

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

#2 Post by tozett » 07 Mar 2016, 17:44

wich firmware version (R078..) are u using?

wutu
Normal user
Posts: 35
Joined: 05 Feb 2016, 07:33

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

#3 Post by wutu » 07 Mar 2016, 19:07

I use github version, now R83

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

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

#4 Post by tozett » 07 Mar 2016, 22:03

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

Martinus

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

#5 Post by Martinus » 08 Mar 2016, 09:51

Bug confirmed. Current openhab MQTT version only works with the default template.
Will be fixed in R84

wutu
Normal user
Posts: 35
Joined: 05 Feb 2016, 07:33

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

#6 Post by wutu » 09 Mar 2016, 08:18

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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 16 guests