Esphome module commands with http POST not working

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • drfil
    Azubi
    • 13.03.2018
    • 3

    #1

    Esphome module commands with http POST not working

    Hello,

    I have in my system a miniserver gen2 as master and a miniserver gen1 as slave.
    I have 2 esphome nodemcu modules connected to 2 panasonic ac.
    I want a direct connections from Loxone to esphome, no homeassistant and no mqtt if possible.
    The virtual http inputs are working perfectly, i have all the info that i need from the esphome modules.
    But the http POST commands are not working.
    With RESTER Firefox i can sent a POST command "http://ipaddressort/switch/airco/turn_on" and this works perfectly.

    However in Loxone : not working
    Virtual http output
    adress : http://ipaddressort
    Virtual http command:
    command for ON: /switch/airco/turn_on
    I have no http command for ON in loxone config 13

    update: I finally made it working using a workflow in Pipedream, Loxone to Pipedream and Pipedream sends the exact command from above to esphome module and this works perfectly. To bad that Loxone can not do it directly.

    Can anyone help me?

    Thanks,
    Zuletzt geändert von drfil; 03.08.2022, 19:38.
  • Szivacs
    Azubi
    • 30.08.2023
    • 1

    #2
    Hello drfil,

    I had the same issue with a thermostat project. I spent a lot of time finding the solution but I found nothing.
    However I saw somewhere that the options of the Virtual Output Command had different names in the former version of Loxone Config, so I started to try the other fields.

    At the moment my project is working perfectly with the following options:
    Command for ON: /number/flame_indicator/set?value=1
    HTTP body for ON: /number/flame_indicator/set?value=1
    HTTP method for ON: POST
    Command for OFF: /number/flame_indicator/set?value=0
    HTTP body for OFF: /number/flame_indicator/set?value=0
    HTTP method for OFF: POST


    I had to set the Command X and HTTP body for X options to the same value. The function works only in this way.
    I attached two pics of the settings, which are working for me.


    I hope this can help you.​

    Have a nice day.
    Angehängte Dateien
    Zuletzt geändert von Szivacs; 30.08.2023, 12:47.

    Kommentar

    • drfil
      Azubi
      • 13.03.2018
      • 3

      #3
      Hi Szivacs,
      Thank you, i will try it.
      However, with the recent latest updates from Loxone 13 and also Loxone 14 the http post commands are working.
      I can control my panasonic ac modes and even the target tempetature, all commands with http post.
      Have a nice day,
      Thanks again,

      Kommentar

      • GertSt
        Dumb Home'r
        • 15.09.2021
        • 15

        #4
        A direct connection from ESPHome to Loxone in 2 directions: this is exactly what I was looking for!
        Can you share the ESPHome yaml required to do this? An example or a link to a github would be awesome ;-)

        I also found the below youtube and github code, but not tested yet ... Looks quite complicated:
        - https://github.com/hzkincony/esphome-loxone
        - https://www.youtube.com/watch?v=yj-tDb4gRa0

        Thanks!
        Gert

        Kommentar

        • drfil
          Azubi
          • 13.03.2018
          • 3

          #5
          Hi Gert,
          Here 2 yaml examples within the zip.
          1 for Panasonic communication with Loxone via html
          1 for SonOff wallplug with loxone via html

          Greets,
          Filip
          Angehängte Dateien

          Kommentar


          • GertSt
            GertSt kommentierte
            Kommentar bearbeiten
            Thanks for the quick response, Filip!
            Looks exactly what I need.

            Cheers,
            Gert

          • DMeike
            DMeike kommentierte
            Kommentar bearbeiten
            Hello Filip,
            First of all, thank you for dealing with this topic.
            I have been looking for a way to connect my Bosch air conditioners to Loxone for a very long time.
            I have now installed the Midea SLWF-01 Pro in a system and can control it via HomeAssistant. What I am missing is the integration in Loxone, e.g. to set the air conditioner to drying mode when there is a certain humidity in the room.
            My question is, since I am a complete beginner with HA, ESPHome and also YAML, what I have to change in the scripts, how I get them on the SLWF-01 Pro (OTP update?) and how the html commands then look in Loxone?
            I would be happy if you could support me as a beginner in this area :-).

            Many thanks in advance
            Dave
        Lädt...