ozczecho / vzduch-dotek

An API to interface with AirTouch 3 AC controller.
MIT License
9 stars 3 forks source link

Docker install on NAS #12

Closed Uksa007 closed 4 months ago

Uksa007 commented 1 year ago

Hi,

Trying to get this running on a QNAP NAS running in a docker container.

When I build the docker container using the following command "docker build -f Dockerfile -t vzduch-dotek ." It creates three images:

vzduch-dotek mcr.microsoft.com/dotnet/sdk mcr.microsoft.com/dotnet/runtime

Is this normal, should they all be in the one build/image? Do I need to run them all? Is there something I'm doing wrong?

If I start vzduch-dotek I can query the Airtouch3 using "http://nas-home:5353/api/aircons" But none of the commands work, I get a http 405 error using "http://nas-home:5353/api/aircons/0/switch/1"

Any advice? Thanks!

Docker build log: The NAS is an Intel Celeron N5105 64 bit.

$ docker build -f Dockerfile -t vzduch-dotek .
Sending build context to Docker daemon  89.09kB
Step 1/17 : FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
3.1: Pulling from dotnet/sdk
2730d739afad: Pull complete
a122751b3533: Pull complete
0a277c3efe7c: Pull complete
25c35b81c503: Pull complete
f672a823ca9b: Pull complete
2e45c944579e: Pull complete
67e4db0dc696: Pull complete
Digest: sha256:cfade701bd2d6b5fd3c7d86bf85db05cc1d32f46c9ef877b076a6b1ea7548b4c
Status: Downloaded newer image for mcr.microsoft.com/dotnet/sdk:3.1
 ---> 4315cec23d4c
Step 2/17 : WORKDIR /source
 ---> Running in 78aa3c6dbe3a
Removing intermediate container 78aa3c6dbe3a
 ---> ce3802ebe81a
Step 3/17 : COPY *.csproj .
 ---> 87c2c42d86e1
Step 4/17 : RUN dotnet restore
 ---> Running in 92068aad35b5
  Determining projects to restore...
  Restored /source/VzduchDotek.Net.csproj (in 43.5 sec).
Removing intermediate container 92068aad35b5
 ---> 5dee87539d9d
Step 5/17 : COPY . .
 ---> a7cbe671b2d6
Step 6/17 : RUN dotnet publish -c release -o /app -r linux-x64 --self-contained true --no-restore /p:PublishReadyToRun=true
 ---> Running in 5ed8ae574361
Microsoft (R) Build Engine version 16.7.3+2f374e28e for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  VzduchDotek.Net -> /source/bin/release/netcoreapp3.1/linux-x64/VzduchDotek.Net.dll
  VzduchDotek.Net -> /app/
Removing intermediate container 5ed8ae574361
 ---> 9148d9a7c76a
Step 7/17 : FROM mcr.microsoft.com/dotnet/runtime:3.1-buster-slim
3.1-buster-slim: Pulling from dotnet/runtime
Digest: sha256:c7ecc1d143230632494c907c2e81a7d6727f1f08c57ee49dfaa9edae604a520b
Status: Downloaded newer image for mcr.microsoft.com/dotnet/runtime:3.1-buster-slim
 ---> 3b42d02b7d9f
Step 8/17 : MAINTAINER Mike <ozczecho@yahoo.com>
 ---> Using cache
 ---> 83ab86bdccac
Step 9/17 : RUN apt-get update     && apt-get install -y --no-install-recommends         curl locales     && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> b2c251f6d3dd
Step 10/17 : RUN sed -i -e 's/# en_AU.UTF-8 UTF-8/en_AU.UTF-8 UTF-8/' /etc/locale.gen &&     locale-gen
 ---> Using cache
 ---> 3411fc132dfb
Step 11/17 : ENV TZ=Australia/Brisbane
 ---> Using cache
 ---> 3cdcc73334b5
Step 12/17 : ENV LANG en_AU.utf8
 ---> Using cache
 ---> 34bd363984b1
Step 13/17 : ENV LANGUAGE ${LANG}
 ---> Using cache
 ---> a9b0b0cdb633
Step 14/17 : ENV LC_ALL ${LANG}
 ---> Using cache
 ---> fedd2d2b3c09
Step 15/17 : WORKDIR /app
 ---> Using cache
 ---> 99f86f5c6db0
Step 16/17 : COPY --from=build /app .
 ---> cf85ca5fe104
Step 17/17 : ENTRYPOINT ["/app/VzduchDotek.Net"]
 ---> Running in 48470e172af4
Removing intermediate container 48470e172af4
 ---> 829dbe159b7f
Successfully built 829dbe159b7f
Successfully tagged vzduch-dotek:latest

Startup console messages

11:40:06 INF] Starting host
[11:40:07 INF] Airtouch panel host + port is [192.168.10.178:8899]
[11:40:07 INF] LogLevel [Verbose]
[11:40:07 DBG] Hosting starting
[11:40:08 DBG] Failed to locate the development https certificate at 'null'.
[11:40:08 INF] Now listening on: http://[::]:5353
[11:40:08 DBG] Loaded hosting startup assembly VzduchDotek.Net
[11:40:08 INF] Application started. Press Ctrl+C to shut down.
[11:40:08 INF] Hosting environment: Production
[11:40:08 INF] Content root path: /app
[11:40:08 DBG] Hosting started

Working request to get AC details: http://nas-home:5353/api/aircons

[11:49:35 DBG] Connection id "0HMMCUEN7DDFF" accepted.
[11:49:35 DBG] Connection id "0HMMCUEN7DDFG" accepted.
[11:49:35 DBG] Connection id "0HMMCUEN7DDFF" started.
[11:49:35 DBG] Connection id "0HMMCUEN7DDFG" started.
[11:49:35 INF] Request starting HTTP/1.1 GET http://nas-home:5353/api/aircons  
[11:49:35 VRB] All hosts are allowed.
[11:49:35 DBG] 1 candidate(s) found for the request path '/api/aircons'
[11:49:35 DBG] Endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Get (VzduchDotek.Net)' with route pattern 'api/aircons' is valid for the request path '/api/aircons'
[11:49:35 DBG] Request matched endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Get (VzduchDotek.Net)'
[11:49:35 INF] Executing endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Get (VzduchDotek.Net)'
[11:49:35 INF] Route matched with {action = "Get", controller = "VzduchDotek"}. Executing controller action with signature System.Object Get() on controller VzduchDotek.Net.Controllers.VzduchDotekController (VzduchDotek.Net).
[11:49:35 DBG] Execution plan of authorization filters (in the following order): ["None"]
[11:49:35 DBG] Execution plan of resource filters (in the following order): ["None"]
[11:49:35 DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)", "Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)"]
[11:49:35 DBG] Execution plan of exception filters (in the following order): ["None"]
[11:49:35 DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter (Order: -2000)"]
[11:49:35 DBG] Executing controller factory for controller VzduchDotek.Net.Controllers.VzduchDotekController (VzduchDotek.Net)
[11:49:35 DBG] Executed controller factory for controller VzduchDotek.Net.Controllers.VzduchDotekController (VzduchDotek.Net)
[11:49:35 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[11:49:35 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[11:49:35 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[11:49:35 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[11:49:35 INF] Executing action method VzduchDotek.Net.Controllers.VzduchDotekController.Get (VzduchDotek.Net) - Validation state: Valid
[11:49:35 DBG] Connected to 192.168.10.178 8899
[11:49:35 VRB] Received Message F2 FA 14 16 0A 16 0B 2E 0E 00 90 00 91 1E 96 00 0E 00 8C 1E 92 00 97 1E 0E 00 8C 1E 92 00 97 1E 86 1E 0E 00 91 1E 96 00 87 1E 0E 00 92 00 97 1E 87 1E 0E 00 92 00 97 1E 86 1E 88 00 91 1E 96 00 87 1E 8C 1E 92 00 97 1E 87 1E 8C 1E 92 00 97 1E 86 1E 90 00 91 1E 96 00 87 1E 90 00 92 00 97 1E 87 1E 90 00 92 00 97 1E 4C 69 76 69 6E 67 00 00 4D 61 73 74 65 72 00 00 52 6F 62 65 00 00 00 00 53 69 74 74 69 6E 67 00 47 55 45 53 54 00 00 00 42 65 64 20 32 00 00 00 42 65 64 20 33 00 00 00 42 65 64 20 34 00 00 00 4D 65 64 69 61 00 00 00 47 72 6F 75 70 5F 41 00 47 72 6F 75 70 5F 42 00 47 72 6F 75 70 5F 43 00 47 72 6F 75 70 5F 44 00 47 72 6F 75 70 5F 45 00 47 72 6F 75 70 5F 46 00 47 72 6F 75 70 5F 47 00 3C 91 12 83 04 85 06 07 00 81 82 83 84 85 86 87 14 14 0A 0A 08 14 14 14 0A 14 14 14 14 14 14 14 01 11 21 31 41 51 61 71 81 91 A1 B1 C1 D1 E1 F1 8A 0A 0A 8A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 3A 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 4C 69 76 69 6E 47 20 20 46 61 76 5F 32 00 00 00 46 61 76 5F 33 00 00 00 46 61 76 5F 34 00 00 00 80 00 00 00 00 00 00 00 09 83 00 01 00 E5 23 00 00 50 6F 6C 79 61 69 72 65 00 00 30 38 20 38 33 34 39 20 38 34 36 36 50 6F 6C 79 61 69 72 65 00 00 00 00 00 00 00 00 55 70 70 65 72 00 00 00 4C 6F 77 65 72 00 00 00 8F 00 97 3B 86 1E 90 00 04 04 00 00 04 04 31 33 1B 18 1E 1B 00 00 00 00 12 12 01 00 00 01 9B 9D FF 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 38 34 31 31 39 31 33 7D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[11:49:35 VRB] Service RecvMessage F2 FA 14 16 0A 16 0B 2E 0E 00 90 00 91 1E 96 00 0E 00 8C 1E 92 00 97 1E 0E 00 8C 1E 92 00 97 1E 86 1E 0E 00 91 1E 96 00 87 1E 0E 00 92 00 97 1E 87 1E 0E 00 92 00 97 1E 86 1E 88 00 91 1E 96 00 87 1E 8C 1E 92 00 97 1E 87 1E 8C 1E 92 00 97 1E 86 1E 90 00 91 1E 96 00 87 1E 90 00 92 00 97 1E 87 1E 90 00 92 00 97 1E 4C 69 76 69 6E 67 00 00 4D 61 73 74 65 72 00 00 52 6F 62 65 00 00 00 00 53 69 74 74 69 6E 67 00 47 55 45 53 54 00 00 00 42 65 64 20 32 00 00 00 42 65 64 20 33 00 00 00 42 65 64 20 34 00 00 00 4D 65 64 69 61 00 00 00 47 72 6F 75 70 5F 41 00 47 72 6F 75 70 5F 42 00 47 72 6F 75 70 5F 43 00 47 72 6F 75 70 5F 44 00 47 72 6F 75 70 5F 45 00 47 72 6F 75 70 5F 46 00 47 72 6F 75 70 5F 47 00 3C 91 12 83 04 85 06 07 00 81 82 83 84 85 86 87 14 14 0A 0A 08 14 14 14 0A 14 14 14 14 14 14 14 01 11 21 31 41 51 61 71 81 91 A1 B1 C1 D1 E1 F1 8A 0A 0A 8A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 3A 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 4C 69 76 69 6E 47 20 20 46 61 76 5F 32 00 00 00 46 61 76 5F 33 00 00 00 46 61 76 5F 34 00 00 00 80 00 00 00 00 00 00 00 09 83 00 01 00 E5 23 00 00 50 6F 6C 79 61 69 72 65 00 00 30 38 20 38 33 34 39 20 38 34 36 36 50 6F 6C 79 61 69 72 65 00 00 00 00 00 00 00 00 55 70 70 65 72 00 00 00 4C 6F 77 65 72 00 00 00 8F 00 97 3B 86 1E 90 00 04 04 00 00 04 04 31 33 1B 18 1E 1B 00 00 00 00 12 12 01 00 00 01 9B 9D FF 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 38 34 31 31 39 31 33 7D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[11:49:35 VRB] Aircon Id is 18. Raw 00010010
[11:49:35 VRB] Aircon BrandId is 0. Raw 00000000
[11:49:35 VRB] Aircon is AcOff. Raw 00000100
[11:49:35 VRB] Aircon is OK. Raw 00000100
[11:49:35 VRB] Aircon system name is Polyaire
[11:49:35 VRB] Sensor 0 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 1 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 2 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 3 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 4 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 5 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 6 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 7 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 8 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 9 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 10 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 11 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 12 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 13 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 14 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 15 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 16 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 17 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 18 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 19 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 20 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 21 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 22 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 23 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 24 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 25 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 26 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 27 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 28 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 29 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 30 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB] Sensor 31 IsAvailable False LowBattery False Temperature 0
[11:49:35 VRB]  Ac Mode is 4 - enum Cool
[11:49:35 VRB]  Fanspeed is 1 - enum Low
[11:49:35 VRB] AirTouchId is  88411913 
[11:49:35 VRB] Touchpad GroupId is  0 
[11:49:35 VRB] Touchpad Temperature is  27 
[11:49:35 VRB] Desired Temperature is  27 
[11:49:35 VRB] Room Temperature is  30 
[11:49:35 VRB] Thermostat mode is  1 
[11:49:35 VRB] Zone Data 00111100 for 0
[11:49:35 VRB] Zone Data 10010001 for 1
[11:49:35 VRB] Zone Data 00010010 for 2
[11:49:35 VRB] Zone Data 10000011 for 3
[11:49:35 VRB] Zone Data 00000100 for 4
[11:49:35 VRB] Zone Data 10000101 for 5
[11:49:35 VRB] Zone Data 00000110 for 6
[11:49:35 VRB] Zone Data 00000111 for 7
[11:49:35 VRB] Zone Data 00000000 for 8
[11:49:35 VRB] Zone Data 10000001 for 9
[11:49:35 VRB] Zone Data 10000010 for 10
[11:49:35 VRB] Zone Data 10000011 for 11
[11:49:35 VRB] Zone Data 10000100 for 12
[11:49:35 VRB] Zone Data 10000101 for 13
[11:49:35 VRB] Zone Data 10000110 for 14
[11:49:35 VRB] Zone Data 10000111 for 15
[11:49:35 VRB] Zone Name Living for 0
[11:49:35 VRB] Zone Data 00111100 for Start Zone 0 and status is ZoneOff
[11:49:35 VRB] Zone Name Master for 1
[11:49:35 VRB] Zone Data 10010001 for Start Zone 1 and status is ZoneOn
[11:49:35 VRB] Zone Name Robe for 2
[11:49:35 VRB] Zone Data 00010010 for Start Zone 2 and status is ZoneOff
[11:49:35 VRB] Zone Name Sitting for 3
[11:49:35 VRB] Zone Data 10000011 for Start Zone 3 and status is ZoneOn
[11:49:35 VRB] Zone Name GUEST for 4
[11:49:35 VRB] Zone Data 00000100 for Start Zone 4 and status is ZoneOff
[11:49:35 VRB] Zone Name Bed 2 for 5
[11:49:35 VRB] Zone Data 10000101 for Start Zone 5 and status is ZoneOn
[11:49:35 VRB] Zone Name Bed 3 for 6
[11:49:35 VRB] Zone Data 00000110 for Start Zone 6 and status is ZoneOff
[11:49:35 VRB] Zone Name Bed 4 for 7
[11:49:35 VRB] Zone Data 00000111 for Start Zone 7 and status is ZoneOff
[11:49:35 VRB] Zone Name Media for 8
[11:49:35 VRB] Zone Data 00000000 for Start Zone 8 and status is ZoneOff
[11:49:35 VRB] {"Aircons": [{"Id": 18, "AirTouchId": "88411913", "Mode": "Cool", "Name": "Polyaire", "PowerStatus": "AcOff", "Status": "OK", "BrandId": 0, "TouchPadGroupId": 0, "TouchPadTemperature": 27, "DesiredTemperature": 27, "RoomTemperature": 30, "ThermostatMode": 1, "FanMode": "Low", "Zones": [{"Id": 0, "Name": "Living", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 27, "ZoneTemperatureType": "UseSensor", "Sensors": [], "$type": "Zone"}, {"Id": 1, "Name": "Master", "Status": "ZoneOn", "FanValue": 100, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 2, "Name": "Robe", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 3, "Name": "Sitting", "Status": "ZoneOn", "FanValue": 50, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 4, "Name": "GUEST", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 5, "Name": "Bed 2", "Status": "ZoneOn", "FanValue": 100, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 6, "Name": "Bed 3", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 7, "Name": "Bed 4", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 8, "Name": "Media", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}], "Sensors": [{"Id": 0, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 1, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 2, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 3, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 4, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 5, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 6, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 7, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 8, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 9, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 10, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 11, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 12, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 13, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 14, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 15, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 16, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 17, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 18, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 19, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 20, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 21, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 22, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 23, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 24, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 25, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 26, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 27, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 28, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 29, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 30, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 31, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}], "Version": "0.4", "$type": "Aircon"}], "SelectedAc": 0, "$type": "AirTouchSystem"}
[11:49:35 INF] Executed action method VzduchDotek.Net.Controllers.VzduchDotekController.Get (VzduchDotek.Net), returned result Microsoft.AspNetCore.Mvc.ContentResult in 195.1861ms.
[11:49:35 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[11:49:35 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[11:49:35 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[11:49:35 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[11:49:35 VRB] Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[11:49:35 VRB] Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[11:49:35 VRB] Before executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[11:49:35 INF] Executing ContentResult with HTTP Response ContentType of application/json
[11:49:35 VRB] After executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[11:49:35 VRB] Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[11:49:35 VRB] Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[11:49:35 INF] Executed action VzduchDotek.Net.Controllers.VzduchDotekController.Get (VzduchDotek.Net) in 204.0346ms
[11:49:35 INF] Executed endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Get (VzduchDotek.Net)'
[11:49:35 DBG] Connection id "0HMMCUEN7DDFF" completed keep alive response.
[11:49:35 INF] Request finished in 213.8954ms 200 application/json

Failed request to turn on AC http://nas-home:5353/api/aircons/0/switch/1

11:42:33 INF] Request starting HTTP/1.1 GET http://nas-home:5353/api/aircons/0/switch/1  
[11:42:33 VRB] All hosts are allowed.
[11:42:33 DBG] 1 candidate(s) found for the request path '/api/aircons/0/switch/1'
[11:42:33 DBG] Request matched endpoint '405 HTTP Method Not Supported'
[11:42:33 INF] Executing endpoint '405 HTTP Method Not Supported'
[11:42:33 INF] Executed endpoint '405 HTTP Method Not Supported'
[11:42:33 DBG] Connection id "0HMMCUEN7DDET" completed keep alive response.
[11:42:33 INF] Request finished in 4.1655ms 405 
Uksa007 commented 1 year ago

@ozczecho Any ideas on why it fails to turn on the AC and returns a HTTP 405 error? I suspect it has something to do with the three images being created? vzduch-dotek mcr.microsoft.com/dotnet/sdk mcr.microsoft.com/dotnet/runtime

ozczecho commented 1 year ago

@Uksa007 - Sorry for late reply, I was away on annual leave. Anyway, are you still having issues?

Uksa007 commented 1 year ago

Hi,

Yep, same issue as logged.
Creates three images, is that normal? Any ideas? Regards

On 29 Nov 2022, at 11:49 pm, Mike B @.***> wrote:

 @Uksa007 - Sorry for late reply, I was away on annual leave. Anyway, are you still having issues?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

ozczecho commented 1 year ago

Just read your message again - for the "action" api calls (like switch aircon ON / OFF) you need to do a POST and not a GET. Does that make sense?

Uksa007 commented 1 year ago

Does that make sense?

Yep, using your custom component to try to "turn on" the AC, It still doesn't work, get the following in the log:

[13:55:34 INF] Request starting HTTP/1.1 POST http://192.168.10.5:5353/api/aircons/0/switch/0 application/octet-stream 0
[13:55:34 VRB] All hosts are allowed.
[13:55:34 DBG] 1 candidate(s) found for the request path '/api/aircons/0/switch/0'
[13:55:34 DBG] Endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net)' with route pattern 'api/aircons/{selectedId}/switch/{status}' is valid for the request path '/api/aircons/0/switch/0'
[13:55:34 DBG] Request matched endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net)'
[13:55:34 INF] Executing endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net)'
[13:55:34 INF] Route matched with {action = "Switch", controller = "VzduchDotek"}. Executing controller action with signature System.Object Switch(Int32, AcStatus) on controller VzduchDotek.Net.Controllers.VzduchDotekController (VzduchDotek.Net).
[13:55:34 DBG] Execution plan of authorization filters (in the following order): ["None"]
[13:55:34 DBG] Execution plan of resource filters (in the following order): ["None"]
[13:55:34 DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)", "Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)"]
[13:55:34 DBG] Execution plan of exception filters (in the following order): ["None"]
[13:55:34 DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter (Order: -2000)"]
[13:55:34 DBG] Executing controller factory for controller VzduchDotek.Net.Controllers.VzduchDotekController (VzduchDotek.Net)
[13:55:34 DBG] Executed controller factory for controller VzduchDotek.Net.Controllers.VzduchDotekController (VzduchDotek.Net)
[13:55:34 DBG] Attempting to bind parameter 'selectedId' of type 'System.Int32' ...
[13:55:34 DBG] Attempting to bind parameter 'selectedId' of type 'System.Int32' using the name 'selectedId' in request data ...
[13:55:34 DBG] Done attempting to bind parameter 'selectedId' of type 'System.Int32'.
[13:55:34 DBG] Done attempting to bind parameter 'selectedId' of type 'System.Int32'.
[13:55:34 DBG] Attempting to validate the bound parameter 'selectedId' of type 'System.Int32' ...
[13:55:34 DBG] Done attempting to validate the bound parameter 'selectedId' of type 'System.Int32'.
[13:55:34 DBG] Attempting to bind parameter 'status' of type 'AcStatus' ...
[13:55:34 DBG] Attempting to bind parameter 'status' of type 'AcStatus' using the name 'status' in request data ...
[13:55:34 DBG] Done attempting to bind parameter 'status' of type 'AcStatus'.
[13:55:34 DBG] Done attempting to bind parameter 'status' of type 'AcStatus'.
[13:55:34 DBG] Attempting to validate the bound parameter 'status' of type 'AcStatus' ...
[13:55:34 DBG] Done attempting to validate the bound parameter 'status' of type 'AcStatus'.
[13:55:34 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[13:55:34 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[13:55:34 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[13:55:34 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[13:55:34 INF] Executing action method VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net) - Validation state: Valid
[13:55:34 VRB] Executing action method VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net) with arguments (["0", "AcOff"])
[13:55:34 DBG] Connected to 192.168.10.178 8899
[13:55:35 VRB] Received Message F2 FA 14 11 04 05 01 11 0E 00 90 00 91 1E 96 00 0E 00 8C 1E 92 00 97 1E 0E 00 8C 1E 92 00 97 1E 86 1E 0E 00 91 1E 96 00 87 1E 0E 00 92 00 97 1E 87 1E 0E 00 92 00 97 1E 86 1E 88 00 91 1E 96 00 87 1E 8C 1E 92 00 97 1E 87 1E 8C 1E 92 00 97 1E 86 1E 90 00 91 1E 96 00 87 1E 90 00 92 00 97 1E 87 1E 90 00 92 00 97 1E 4C 69 76 69 6E 67 00 00 4D 61 73 74 65 72 00 00 52 6F 62 65 00 00 00 00 53 69 74 74 69 6E 67 00 47 55 45 53 54 00 00 00 42 65 64 20 32 00 00 00 42 65 64 20 33 00 00 00 42 65 64 20 34 00 00 00 4D 65 64 69 61 00 00 00 47 72 6F 75 70 5F 41 00 47 72 6F 75 70 5F 42 00 47 72 6F 75 70 5F 43 00 47 72 6F 75 70 5F 44 00 47 72 6F 75 70 5F 45 00 47 72 6F 75 70 5F 46 00 47 72 6F 75 70 5F 47 00 3C 11 12 83 04 85 06 07 00 81 82 83 84 85 86 87 14 14 0A 0A 08 14 14 14 0A 14 14 14 14 14 14 14 01 11 21 31 41 51 61 71 81 91 A1 B1 C1 D1 E1 F1 8A 0A 0A 8A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 3A 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 4C 69 76 69 6E 47 20 20 46 61 76 5F 32 00 00 00 46 61 76 5F 33 00 00 00 46 61 76 5F 34 00 00 00 80 00 00 00 00 00 00 00 09 83 00 01 00 E5 23 00 00 50 6F 6C 79 61 69 72 65 00 00 30 38 20 38 33 34 39 20 38 34 36 36 50 6F 6C 79 61 69 72 65 00 00 00 00 00 00 00 00 55 70 70 65 72 00 00 00 4C 6F 77 65 72 00 00 00 8F 00 97 3B 86 1E 90 00 04 04 00 00 04 04 32 33 1B 18 19 1B 00 00 00 00 12 12 01 00 00 01 9A 9A 22 01 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 38 34 31 31 39 31 33 D6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
[13:55:35 VRB] Service RecvMessage F2 FA 14 11 04 05 01 11 0E 00 90 00 91 1E 96 00 0E 00 8C 1E 92 00 97 1E 0E 00 8C 1E 92 00 97 1E 86 1E 0E 00 91 1E 96 00 87 1E 0E 00 92 00 97 1E 87 1E 0E 00 92 00 97 1E 86 1E 88 00 91 1E 96 00 87 1E 8C 1E 92 00 97 1E 87 1E 8C 1E 92 00 97 1E 86 1E 90 00 91 1E 96 00 87 1E 90 00 92 00 97 1E 87 1E 90 00 92 00 97 1E 4C 69 76 69 6E 67 00 00 4D 61 73 74 65 72 00 00 52 6F 62 65 00 00 00 00 53 69 74 74 69 6E 67 00 47 55 45 53 54 00 00 00 42 65 64 20 32 00 00 00 42 65 64 20 33 00 00 00 42 65 64 20 34 00 00 00 4D 65 64 69 61 00 00 00 47 72 6F 75 70 5F 41 00 47 72 6F 75 70 5F 42 00 47 72 6F 75 70 5F 43 00 47 72 6F 75 70 5F 44 00 47 72 6F 75 70 5F 45 00 47 72 6F 75 70 5F 46 00 47 72 6F 75 70 5F 47 00 3C 11 12 83 04 85 06 07 00 81 82 83 84 85 86 87 14 14 0A 0A 08 14 14 14 0A 14 14 14 14 14 14 14 01 11 21 31 41 51 61 71 81 91 A1 B1 C1 D1 E1 F1 8A 0A 0A 8A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 0A 3A 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 4C 69 76 69 6E 47 20 20 46 61 76 5F 32 00 00 00 46 61 76 5F 33 00 00 00 46 61 76 5F 34 00 00 00 80 00 00 00 00 00 00 00 09 83 00 01 00 E5 23 00 00 50 6F 6C 79 61 69 72 65 00 00 30 38 20 38 33 34 39 20 38 34 36 36 50 6F 6C 79 61 69 72 65 00 00 00 00 00 00 00 00 55 70 70 65 72 00 00 00 4C 6F 77 65 72 00 00 00 8F 00 97 3B 86 1E 90 00 04 04 00 00 04 04 32 33 1B 18 19 1B 00 00 00 00 12 12 01 00 00 01 9A 9A 22 01 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 38 34 31 31 39 31 33 D6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[13:55:35 VRB] Aircon Id is 18. Raw 00010010
[13:55:35 VRB] Aircon BrandId is 0. Raw 00000000
[13:55:35 VRB] Aircon is AcOff. Raw 00000100
[13:55:35 VRB] Aircon is OK. Raw 00000100
[13:55:35 VRB] Aircon system name is Polyaire
[13:55:35 VRB] Sensor 0 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 1 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 2 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 3 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 4 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 5 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 6 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 7 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 8 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 9 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 10 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 11 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 12 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 13 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 14 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 15 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 16 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 17 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 18 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 19 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 20 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 21 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 22 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 23 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 24 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 25 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 26 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 27 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 28 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 29 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 30 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB] Sensor 31 IsAvailable False LowBattery False Temperature 0
[13:55:35 VRB]  Ac Mode is 4 - enum Cool
[13:55:35 VRB]  Fanspeed is 2 - enum Medium
[13:55:35 VRB] AirTouchId is  88411913 
[13:55:35 VRB] Touchpad GroupId is  0 
[13:55:35 VRB] Touchpad Temperature is  26 
[13:55:35 VRB] Desired Temperature is  27 
[13:55:35 VRB] Room Temperature is  25 
[13:55:35 VRB] Thermostat mode is  1 
[13:55:35 VRB] Zone Data 00111100 for 0
[13:55:35 VRB] Zone Data 00010001 for 1
[13:55:35 VRB] Zone Data 00010010 for 2
[13:55:35 VRB] Zone Data 10000011 for 3
[13:55:35 VRB] Zone Data 00000100 for 4
[13:55:35 VRB] Zone Data 10000101 for 5
[13:55:35 VRB] Zone Data 00000110 for 6
[13:55:35 VRB] Zone Data 00000111 for 7
[13:55:35 VRB] Zone Data 00000000 for 8
[13:55:35 VRB] Zone Data 10000001 for 9
[13:55:35 VRB] Zone Data 10000010 for 10
[13:55:35 VRB] Zone Data 10000011 for 11
[13:55:35 VRB] Zone Data 10000100 for 12
[13:55:35 VRB] Zone Data 10000101 for 13
[13:55:35 VRB] Zone Data 10000110 for 14
[13:55:35 VRB] Zone Data 10000111 for 15
[13:55:35 VRB] Zone Name Living for 0
[13:55:35 VRB] Zone Data 00111100 for Start Zone 0 and status is ZoneOff
[13:55:35 VRB] Zone Name Master for 1
[13:55:35 VRB] Zone Data 00010001 for Start Zone 1 and status is ZoneOff
[13:55:35 VRB] Zone Name Robe for 2
[13:55:35 VRB] Zone Data 00010010 for Start Zone 2 and status is ZoneOff
[13:55:35 VRB] Zone Name Sitting for 3
[13:55:35 VRB] Zone Data 10000011 for Start Zone 3 and status is ZoneOn
[13:55:35 VRB] Zone Name GUEST for 4
[13:55:35 VRB] Zone Data 00000100 for Start Zone 4 and status is ZoneOff
[13:55:35 VRB] Zone Name Bed 2 for 5
[13:55:35 VRB] Zone Data 10000101 for Start Zone 5 and status is ZoneOn
[13:55:35 VRB] Zone Name Bed 3 for 6
[13:55:35 VRB] Zone Data 00000110 for Start Zone 6 and status is ZoneOff
[13:55:35 VRB] Zone Name Bed 4 for 7
[13:55:35 VRB] Zone Data 00000111 for Start Zone 7 and status is ZoneOff
[13:55:35 VRB] Zone Name Media for 8
[13:55:35 VRB] Zone Data 00000000 for Start Zone 8 and status is ZoneOff
[13:55:35 VRB] {"Aircons": [{"Id": 18, "AirTouchId": "88411913", "Mode": "Cool", "Name": "Polyaire", "PowerStatus": "AcOff", "Status": "OK", "BrandId": 0, "TouchPadGroupId": 0, "TouchPadTemperature": 26, "DesiredTemperature": 27, "RoomTemperature": 25, "ThermostatMode": 1, "FanMode": "Medium", "Zones": [{"Id": 0, "Name": "Living", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 27, "ZoneTemperatureType": "UseSensor", "Sensors": [], "$type": "Zone"}, {"Id": 1, "Name": "Master", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 2, "Name": "Robe", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 3, "Name": "Sitting", "Status": "ZoneOn", "FanValue": 50, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 4, "Name": "GUEST", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 5, "Name": "Bed 2", "Status": "ZoneOn", "FanValue": 100, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 6, "Name": "Bed 3", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 7, "Name": "Bed 4", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}, {"Id": 8, "Name": "Media", "Status": "ZoneOff", "FanValue": 0, "IsSpill": false, "DesiredTemperature": 25, "ZoneTemperatureType": "Hide", "Sensors": [], "$type": "Zone"}], "Sensors": [{"Id": 0, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 1, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 2, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 3, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 4, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 5, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 6, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 7, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 8, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 9, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 10, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 11, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 12, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 13, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 14, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 15, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 16, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 17, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 18, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 19, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 20, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 21, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 22, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 23, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 24, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 25, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 26, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 27, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 28, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 29, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 30, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}, {"Id": 31, "IsAvailable": false, "IsLowBattery": false, "Temperature": 0, "$type": "Sensor"}], "Version": "0.4", "$type": "Aircon"}], "SelectedAc": 0, "$type": "AirTouchSystem"}
[13:55:35 INF] Executed action method VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net), returned result Microsoft.AspNetCore.Mvc.ContentResult in 180.5331ms.
[13:55:35 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[13:55:35 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[13:55:35 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[13:55:35 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[13:55:35 VRB] Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[13:55:35 VRB] Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[13:55:35 VRB] Before executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[13:55:35 INF] Executing ContentResult with HTTP Response ContentType of application/json
[13:55:35 VRB] After executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[13:55:35 VRB] Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[13:55:35 VRB] Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[13:55:35 INF] Executed action VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net) in 192.9144ms
[13:55:35 INF] Executed endpoint 'VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net)'
[13:55:35 DBG] Connection id "0HMMIGQ8VSKF1" completed keep alive response.
[13:55:35 INF] Request finished in 211.9168ms 200 application/json
ozczecho commented 1 year ago

You are turning it OFF

[13:55:34 VRB] Executing action method VzduchDotek.Net.Controllers.VzduchDotekController.Switch (VzduchDotek.Net) with arguments (["0", "AcOff"])

s/be POST http://192.168.10.5:5353/api/aircons/0/switch/1

Uksa007 commented 1 year ago

You are turning it OFF

Yea I think I worked it out, pushing the power button, doesn't toggle the power it only turns it off(not like the app), seems you have to push the already selected cool mode to turn it on? Do I have that right?