wildcs / oh3_compiled-addons

OpenHab3 Compile Addons by wildcs
14 stars 1 forks source link

P100 logged-in but not selectable/saveable inside item - why? #5

Closed redskate closed 1 year ago

redskate commented 1 year ago

Dear community

I am running an openHAB 3.3.0 Docker on OSX Mojave with 3.3.0 tapo bindings (downloaded inside OH3). OH3 items cannot link with (successfully cloud-logged-in) P100 things (no save link offered after P100 selection).

What could I am doing wrong here?

How can I manage to get the P100 thing saved inside an item (in order to switch it on and off)?

Thanks a lot for your kind response

wildcs commented 1 year ago

Did you set the correct IP in the thing settings? Whats the state of the item and what is about the thing in the logfile?

redskate commented 1 year ago

Thank you for that. Yes I set the internal subnet IP of that Tapo Control in the panel. That control has a static DHCP and once connected, it gets its IP in the subnet.

wildcs commented 1 year ago

Can you ping the device with the IP you Set in the Thing-Settings? Pleased Post Screenshot of Thing-Settings and the Log Message belonging to TapoControl.

redskate commented 1 year ago

I can issue a netcat command from INSIDE the docker container:

nc -v 10.0.1.101 80

for port 80 (I guess) and the answer is: "Connection to 10.0.1.101 80 port [tcp/http] succeeded!"

ping gives: 64 bytes from 10.0.1.101: icmp_seq=1 ttl=37 time=6.14 ms 64 bytes from 10.0.1.101: icmp_seq=2 ttl=37 time=3.73 ms 64 bytes from 10.0.1.101: icmp_seq=3 ttl=37 time=3.06 ms

DOCKER container started with:

docker run \
        --name openhab \
    -p 8080:8080 \
    -p 8447:8443 \
        -v /etc/localtime:/etc/localtime:ro \
        -v /etc/timezone:/etc/timezone:ro \
    -v /Users/fabio/Documents/workspace/dockeropenHAB/conf:/openhab/conf \
    -v /Users/fabio/Documents/workspace/dockeropenHAB/conf:/openhab/conf \
    -v /Users/fabio/Documents/workspace/dockeropenHAB/userdata:/openhab/userdata \
    -v /Users/fabio/Documents/workspace/dockeropenHAB/addons:/openhab/addons \
    -v /Users/fabio/Documents/workspace/dockeropenHAB/.java:/openhab/.java \
        -e CRYPTO_POLICY=unlimited \
    -e USER_ID=502 \
        -e GROUP_ID=503 \
    -d \
        openhab/openhab:3.3.0

screenshot attached Screenshot 2022-09-07 at 15 27 07

Screenshot 2022-09-07 at 15 32 52

wildcs commented 1 year ago

Thing ist online so communication seems to be okay.

redskate commented 1 year ago

Yes, but in the item, after selection ot that thing, non "save" button is offered - so item and thing are not bound ... even not bound after I do it explicitly.

redskate commented 1 year ago

In the item panel, after selection, on the upper right, no "save" ... and then I can switch the item on and off as often I want ... nothing happens on the tape control. The item "forgets" the thing and nothing happens really. The log says ON and OFF ... but nothing happens: no electricity is given to the 220V physical plug. In my understanding, after having selected the thing inside the item panel, an item save link (upper right) should appear and when someone changes the item switch, the plug should pass the 220V turning on the attached electrical user.

Screenshot 2022-09-07 at 16 12 04

wildcs commented 1 year ago

How do you try to link the item to thing? Looks wired and not as a binding bug.

In my OH3.3.0 it looks like this: image image image

And then the Item looks like this: image

redskate commented 1 year ago

Thanks a lot for this!

1) Now the linked item is bound with the thing but does not offer a switch 2) tobefollowed later - I supposed I have "chosen" the wrong way to bind an item with a thing (in der Tat you bind a thing with an item now) - I do understand the model is very flexible, but don't you think here some change could come in in order for starting users like me to understand it was wrong ? I feel very lucky to be able to exchange with you here. Screenshot 2022-09-08 at 12 59 06 Screenshot 2022-09-08 at 13 02 27

Screenshot 2022-09-08 at 13 03 55

redskate commented 1 year ago

I discovered one missing action and I did that: adding an item one has to determine the class of the item, which is default a measurement; here I changed the class to "SWITCH" and pressed "save".

redskate commented 1 year ago

I managed to link a switch inside the thing panel under the specific switch place. And ... as soon as you do the right thing, it functions! Thank you very much!!!

At this point I haveto say, I tried to follow the manual developing a model top down, i.e. from model to thing and I did not success. Maybe there is there some need of improvement ??? (or maybe I have to read again the manual...)

THANK YOU :) Screenshot 2022-09-08 at 13 21 37