HTTP binding '*' command not working?

120 views
Skip to first unread message

Thib

unread,
Mar 30, 2015, 5:46:15 PM3/30/15
to ope...@googlegroups.com
Hi,

I use OpenHAB 1.6.2 and I would like to use a generic '*' command to control a Foscam IP camera.

My item reads:

String sFoscamSalonPosition "Salon Position[%s]" <cctv> { http=">[*:GET:http://192.168.1.1:88/cgi-bin/CGIProxy.fcgi?usr=user&pwd=pass&cmd=ptzGotoPresetPoint&name=%2$s]]" }

With a sitemap:

Selection item=sFoscamSalonPosition mappings=[TopMost=TopMost, Sec1=Sec1, Sec2=Sec2]

(side question: do I have to give a mapping like that?  Any way I could list the possible values without having to fudge it as a mapping?)

However that doesn't work.

Instead if I change the item to explicitly state all the commands:

String sFoscamSalonPosition "Salon Position[%s]" <cctv> { http=">[TopMost:GET:http://192.168.1.1:88/cgi-bin/CGIProxy.fcgi?usr=user&pwd=pass&cmd=ptzGotoPresetPoint&name=%2$s] >[Sec1:GET:http://192.168.1.1:88/cgi-bin/CGIProxy.fcgi?usr=user&pwd=pass&cmd=ptzGotoPresetPoint&name=%2$s] >[Sec2:GET:http://192.168.1.1:88/cgi-bin/CGIProxy.fcgi?usr=user&pwd=pass&cmd=ptzGotoPresetPoint&name=%2$s]" }

... then it works fine.  Quite an ugly long line though, would be much nicer to use the '*' command, if I could make it work!

Am I using it wrong, or is it broken?

Thanks,
Thibault.

Mark Nacke

unread,
Apr 3, 2015, 1:06:19 PM4/3/15
to ope...@googlegroups.com
Thib

I tried using your ITEM and SITEMAP settings of course change to my IP and username and password and get these errors

openhab.log:12:58:04.769 [ERROR] [o.u.i.items.ItemUIRegistryImpl:251  ] - Cannot retrieve item for widget org.openhab.model.sitemap.Selection
openhab.log:12:58:04.769 [ERROR] [o.u.i.items.ItemUIRegistryImpl:419  ] - Cannot retrieve item 'FoscamFront' for widget org.openhab.model.sitemap.Selection
openhab.log:12:58:04.769 [ERROR] [o.u.i.items.ItemUIRegistryImpl:419  ] - Cannot retrieve item 'FoscamFront' for widget org.openhab.model.sitemap.Selection
openhab.log:12:58:04.770 [ERROR] [o.u.i.items.ItemUIRegistryImpl:419  ] - Cannot retrieve item 'FoscamFront' for widget org.openhab.model.sitemap.Selection


Peter Weiß

unread,
Apr 5, 2015, 2:51:06 AM4/5/15
to ope...@googlegroups.com
I have observed the same issue with openHAB 1.6.1 when using the HTTP binding for cntroling my Dreambox. '*' is not working as described in https://github.com/openhab/openhab/wiki/Http-Binding. Listing all commands explicitely is a workaround.

Thibault Godouet

unread,
Apr 5, 2015, 12:59:03 PM4/5/15
to ope...@googlegroups.com
Mark,

Sorry, not sure what's wrong as your config seems ok. The only thing I can think of is that you would have saved your updated sitemap config before your item one or something like that.

Peter,

Ok, thanks for confirming... looks like it may be a bug then, rather than me using it wrong.

Thib.

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/KY9fx-6drOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/c01f1308-6e21-4d61-a659-329e0324ce3f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages