Closed Uksa007 closed 4 months 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
@Uksa007 - Sorry for late reply, I was away on annual leave. Anyway, are you still having issues?
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.
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?
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
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
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?
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.
Startup console messages
Working request to get AC details: http://nas-home:5353/api/aircons
Failed request to turn on AC http://nas-home:5353/api/aircons/0/switch/1