Announcement

Collapse
No announcement yet.

Looking for some help using the Daikin REST API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Looking for some help using the Daikin REST API

    I just got a Dainkin A/C installed with the wifi module. When I first tried a REST command I could get it to work. I'm now trying to actually control it and the damn thing refuses to connect. I have no idea how to troubleshoot this and would love some guidance.

    An example of a REST request would be

    PHP Code:
    http://IPADDRESS/aircon/get_sensor_info? 
    Thanks
    Don

    #2
    Bump

    A bit more information.... The connection is refused by the server. I can successfully ping the A/C unit.
    Don

    Comment


      #3
      This connection refused can be caused by an invalid login. I'm sure the API requires some kind of credentials to be part of the commands to control the unit or anyone would be able to control your unit.

      I found this info here https://github.com/ael-code/daikin-control:
      • It is no possible to control the AC from a web browser. You must use the official mobile application. If your device is not supported or you are from a computer you can not control your air conditioner over the internet.
      • To control your AC remotely from outside your lan, your requests must go through the Daikin server. The device response is slow because the system is based on polling request. (you can't set the ip of the AC on the mobile application)
      • Even if the remote management system involves the use of an account with password, there is a big security issue, password and username can be accessed from inside your LAN with a GET request. (try basic_info request)
      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

      Comment


        #4
        Originally posted by donstephens View Post
        I just got a Dainkin A/C installed with the wifi module. When I first tried a REST command I could get it to work. I'm now trying to actually control it and the damn thing refuses to connect. I have no idea how to troubleshoot this and would love some guidance.

        An example of a REST request would be

        PHP Code:
        http://IPADDRESS/aircon/get_sensor_info? 
        Thanks
        you can go the Node-RED route. See https://flows.nodered.org/node/node-...trib-daikin-ac

        ---
        John

        Comment


          #5
          Daikin API is built into mcsMQTT. It creates the HS devices and manages the communications. TCP Page, Daikin tab.

          Comment


            #6
            Originally posted by Michael McSharry View Post
            Daikin API is built into mcsMQTT. It creates the HS devices and manages the communications. TCP Page, Daikin tab.
            Thank you all. I'll try Michael's suggestion. I've been using mcsMQTT for quite a while but I was way back on version 3.xx
            Don

            Comment


              #7
              Originally posted by shanjoseph875
              I have installed the split air conditioner in my room with a wifi module. I easily ping the module with the AC Unit. Sometimes, the air conditioner and wifi module need to be reset. If you reset the whole system and ping it again. Then, it working well.
              Thanks for the suggestion. I had a hell of a time to get the module to reset, but finally it did.
              Don

              Comment


                #8
                Hi Don.

                The Dainkin WIFI endpoints requires a little header set in your requests. Specifically Host. If not set, you'll get your 404 on any requests made.

                Here's an example in Javascript:

                let opts = {};
                opts.headers = {'Host': '192.168.1.1'
                };// IP of device making request
                opts.hostname = '192.168.1.2' // IP address of Wifi adaptor
                opts.path = '/skyfi/aircon/get_control_info';
                opts.method = 'GET';

                let request = http.request(
                opts);



                Here's some more useful information about the API.
                https://github.com/ael-code/daikin-control

                Comment


                  #9
                  Thank you.
                  Don

                  Comment

                  Working...
                  X