Sending data from Home Assistant to Loxone

403 means incorrect authentication?

EDIT: ok it seems to work with an other user.
How can I trigger the push to loxone? If I trigger manually in the gui it gives the common error describet above…

If you trigger manually, there is no entity triggering the automation, so it won’t work.

A better solution would be to change the value of one of the entities you have in scope using the DevTools.

ok if I put the example in the browser it triggers the value to loxone. But your script did not change the values

Did you try to trigger it by changing the state manually? Did you change to the currect user/pass in the config and then reboot?

after reboot it works.
if I want to send the timestamp for the last measurement, in loxone it shows only 2024 instead of the whole string. I think this is because it is ascii. any idea how to resolve this?

Hi, quick question. Does the blue print only send values to Loxone if the value has changed? I still have “old” values in my Loxone virtual inputs that do not get updated because it seems like the value in Home Assistant does not change.

Hello guys :slight_smile:
First of all thank you A LOT @gigatexel for this blueprint. It actually saved me some much time and I guess money too :smiley:

For those of you (maybe Newbies like me) can’t get it to work, here is a little tip which helped me a lot: Change the rest_command in your config.yaml into this:
image
Somehow the username:password in the url doesn’t work anymore. I tested it at the traces of my automation and get the error “command client error when calling resource…” etc
Once I removed the username and password from the link and created those lines like in the picture, it worked like a charm.

You should open a bug report I think.
According to the PR’s, there is no change in HA that eliminates sending the user/pass in the url.
Pull requests · home-assistant/core (github.com)

Hi, I read your article with interest and hoped I could use it to let my Midea SLWF-01 WIFI adapter (with which I have integrated my Bosch climate devices in HA) talk to Loxone. This means ON / OFF, heat, cool, dry etc. But I only see the air conditioning sensors under “Trigger entities”. Can you tell me whether and how I can transfer the other commands to Loxone and whether I can transfer data such as temperature and humidity to HA?
I would be very happy to receive an answer.
Thanks in advance

Translated with DeepL Translate: The world's most accurate translator (free version)

Hi @gigatexel,

thank you for your awesome solution! It helped a lot with my MQTT Devices that i also want to connect to Loxone

Ill tried this first with Virtual HTTP Inputs but Loxone can only use Basic Auth with those Config Blocks…

I still have one small improvement:
Loxones XML API is depricated and replaced by a RestAPI
To call it just use /jdev/sps/io/ instead of /dev/sps/io/ in the URL.

I found this info here https://www.loxone.com/enen/kb/api/ under " Communicating with the Miniserver

● a control command looks like
○ “jdev/sps/io/{uuid}/{command}”
● all commands can either start with “jdev/” or just “dev/”
○ “jdev/” in JSON-Format (Beware, the answer will contain ‘dev’ instead of ‘jdev’)
○ “dev/” delivers responses in XML-Format and is deprecated