Chriss89
(Christian Nordheider)
January 30, 2021, 12:27pm
1
Hello everybody,
I have some issues by setting up the channels and items for the http binding.
In OH 2.5 I use items like
Switch Sw_01_01 “Kugeln” (Licht,EG_Flur) {http=">[ON:GET:http://192.168.178.210/control?scene=1 ] >[OFF:GET:http://192.168.178.210/control?scene=2 ]"}
to enable scenes at my lightmanager air.
Now I want the same behaviour in OH3 but I stuck at sending the “ON” command (which works) but hte item does not store the state and the “OFF” command does not work.
Where is my mistake?
I also tried to move the “control?scene=%2$s” part to command url extension. This worked as well but with the same issue.
Edit:
The same toggle switch, accessed from my iphone, works like a charm. Both commands ON and OFF.
Christian
J-N-K
(Jan N. Klug)
January 30, 2021, 6:58pm
2
Can you plese show the YAML (“Code” in the UI). Much easier to reproduce.
Chriss89
(Christian Nordheider)
January 30, 2021, 10:42pm
3
UID: http:url:Lightmanager-Air
label: Lightmanager-Air
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: true
baseURL: http://192.168.178.210/
refresh: 1
commandMethod: GET
timeout: 3000
bufferSize: 2048
location: EG_Wohnzimmer
channels:
id: Sw_03_01
channelTypeUID: http:switch
label: Vitrine Büro
description: “”
configuration:
onValue: “22”
mode: WRITEONLY
offValue: “23”
commandExtension: control?scene=%2$s
This hasn’t got anything to do with the binding - check this:
opened 11:27AM - 30 Dec 20 UTC
bug
question
main ui
<!--
Please DO NOT ERASE this template, but fill in the details as requested. T… his will ensure your issue is properly filed and will be considered. Otherwise, we may reserve the right to close it without further action.
-->
## The problem
A switch bulb item was created.
If it is switched via MS Edge or Chrome Browser, only the ON command is sent, not the OFF command.
If the item is switched via SAFARI (iPhone), it works without any problems.
## Expected behavior
The function should work the same with all browsers.
1.
Chriss89
(Christian Nordheider)
January 31, 2021, 6:11pm
5
I checked this out.
The described issue is exactly the same at my side but activating “Implicit user role for unauthenticated requests” did not solved the problem at my site.
I would add your experience to that issue, and report out what happens when you perform the actions from this post.
Chriss89
(Christian Nordheider)
January 31, 2021, 8:22pm
7
I got throug the whole thread again and the second to last post had the solution.
My Sophos AV is also blocking the SSE updates.
If I go to https everything works.
Thank you!
1 Like