Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Help please with Scene to control Aircondition ACTRONAIR


Guest mrchief

Question

Guest mrchief

Hi, I have an ACTRONAIR at Home with Wireless Controller.  I have done extensive research to understand how the AC is controlled.  It turns out that the AC wireless controller get it's instruction from a Web Service in the cloud.  I have intercepted the Web Service Call and this is what get passed on to the cloud:

 

PUT

Please login or register to see this link.

HTTP/1.1
Accept: application/json
Content-Type: application/json
Referer:

Please login or register to see this link.


Accept-Language: en-AU,en;q=0.8,ar-LB;q=0.5,ar;q=0.3
Origin:

Please login or register to see this link.


Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Host: actron.ninja.is
Content-Length: 24
Connection: Keep-Alive
{"DA":[0,1,1,0,0,0,0,0]}
 
I need help with creating a Scene that sends instructions to the same cloud service.  So far I tried the following without any sucess.  Appreciate any guidance please!
 
--[[
%% properties
%% events
%% globals
--]]
 

-- Callback at success
local function successCallback(resp)
fibaro:debug('connection success, status: ' .. resp.status)
end
-- Callback at error
local function errorCallback(resp)
fibaro:debug('connection no success, error: ' .. resp)
end
-- http-request Scene : senden über AutoRemote Tasker WiFi Service enabled in Tasker Action
local function getDirect()
local http = net.HTTPClient()
payload = '"DA":[1,1,1,1,1,0,0,0]'
fibaro:debug('this is the payload: ' .. payload .. '.')
http:request('https://actron.ninja.is/rest/v0/device/ACONNECTXXXXXXXXXXX_0_2_4?user_access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
{
options = payload,
success = successCallback,
error = errorCallback
}
)

end
-- Do the request
getDirect()
Edited by mrchief
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

Link to comment
Share on other sites

  • 0
On 5/13/2017 at 3:12 PM, mrchief said:

Hi, I have an ACTRONAIR at Home with Wireless Controller.  I have done extensive research to understand how the AC is controlled.  It turns out that the AC wireless controller get it's instruction from a Web Service in the cloud.  I have intercepted the Web Service Call and this is what get passed on to the cloud:

 

PUT

Please login or register to see this link.

HTTP/1.1
Accept: application/json
Content-Type: application/json
Referer:

Please login or register to see this link.


Accept-Language: en-AU,en;q=0.8,ar-LB;q=0.5,ar;q=0.3
Origin:

Please login or register to see this link.


Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Host: actron.ninja.is
Content-Length: 24
Connection: Keep-Alive
{"DA":[0,1,1,0,0,0,0,0]}
 
I need help with creating a Scene that sends instructions to the same cloud service.  So far I tried the following without any sucess.  Appreciate any guidance please!
 
--[[
%% properties
%% events
%% globals
--]]
 

-- Callback at success
local function successCallback(resp)
fibaro:debug('connection success, status: ' .. resp.status)
end
-- Callback at error
local function errorCallback(resp)
fibaro:debug('connection no success, error: ' .. resp)
end
-- http-request Scene : senden über AutoRemote Tasker WiFi Service enabled in Tasker Action
local function getDirect()
local http = net.HTTPClient()
payload = '"DA":[1,1,1,1,1,0,0,0]'
fibaro:debug('this is the payload: ' .. payload .. '.')
http:request('https://actron.ninja.is/rest/v0/device/ACONNECTXXXXXXXXXXX_0_2_4?user_access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
{
options = payload,
success = successCallback,
error = errorCallback
}
)

end
-- Do the request
getDirect()

Hi MrChief,

 

Did you get any success in the above?

I have the same problem, I would appreciate if you could let me know if you had any success.

 

Thanks. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...