Is there any way how to integrate from Loxone lights, that works on old LightController V1 (in Loxone)? All lights controled by LightController V2 works fine, but I have 2 rooms, where I need version V1 (because V2 suppport max. 4 lights control which is not enough for me).
Hi,
I want to use some automations with home assistant and Loxone. I want to use a EIB Switch in Loxone to trigger a device in ha. I can see the Loxone switch as device and used it as a trigger in the automation, but it does not trigger (trace shows nothing). Do I miss something?
Thanks
Hi.
I use pyLoxne add-on and it works ok, but some sensor have problem and not work correct.
For example virtual status (which is InfoOnlyDigital entities) with states “zap” (on) and “vyp” (off).
In HomeAssistant it show OFF state when it is turn ON (in Loxone).
UUID is correct and this is how the sensor looks like in LoxAPP3.json files:
"17155ed0-0351-7acd-ffffe6948d87194f": {
"name": "VZT skleník kolektor",
"type": "InfoOnlyDigital",
"uuidAction": "17155ed0-0351-7acd-ffffe6948d87194f",
"room": "0ed7e2ef-0382-9622-ffff00bdc36df1d0",
"cat": "0dfa57e9-035e-0334-ffff00bdc36df1d0",
"defaultRating": 0,
"isFavorite": false,
"isSecured": false,
"defaultIcon": null,
"details": {
"text": {
"off": "Vyp",
"on": "Zap"
},
"color": {
"off": "#69C350",
"on": "#E73246"
}
},
"states": {
"active": "17155ed0-0351-7acd-ffffe6948d87194f"
}
},
Any idea whats wrong?
Hi JoJo,
I installed this bindig and it works perfect. Great job!
To manage Loxone objects from HA works perfectly. Is it possible also to get some data from HA to Loxone?
Sure. Just use websocket call.
If you need to send data regularly not just one-time events/intents you can use automations.
I am using following automation to get energy sensor data from HA to Loxone:
alias: Loxone - Set PC power
description: ""
trigger:
- platform: state
entity_id:
- sensor.pc_power
for:
hours: 0
minutes: 0
seconds: 0
condition:
- condition: template
value_template: >-
{{ ( as_timestamp(now()) -
as_timestamp(state_attr('automation.loxone_set_pc_power',
'last_triggered')) |int(0) ) > 10 }}
enabled: true
action:
- service: loxone.event_websocket_command
data_template:
uuid: UUID_OF_VIRTUAL_INPUT_IN_LOXONE
value: "{{states.sensor.pc_power.state | float(0) * 0.001 | float }}"
mode: single
That template condition is there to limit how often the automation can run to not overwhelm Miniserver with lot of updates.
Hi JoJo and all,
first up, let me thx for great effort, This implementation works great for me, as is.
Now in the spirit of me being total newbie (fresh Loxon and HAOS install) and that there are no stupid question…
Can you provide a bit more detail on creating custom sensors - extending the default sensor set. I have read the section and uuid search provision. Where does the custom sensor definition go? Do I need my own include, do I use configuration.yaml or modify one of the base files. sensor.py ?
thx for any help
First of all let me say thanks for making this really good integration. Now trying to create the frontend in HA as the Loxone frontend does not give much room for tinkering.
Question: when I create an extra light mood in the Loxone light controller. Is there anyway of reading this in HA? Would be really nice if these light scenes would automatically be imported/updated when they change in the mini server.
Can you post here any photos? What and where I must write/set ?
I have in HA any devices - infos, and I want it see in Loxone (Humidity,lux,temp, state of air purifier… etc)
No sure what kind of photos you are talking about.
If you need to get some sensor value from HA to Loxone you just define virtual input or UDP input in Loxone, then create automation in HA to send the data to that Loxone input and you are done.
Hello.
Pyloxone work me fine for a year. But now some entities dissappear (are unavailable). Its all binary entities (motion sensors, window contacts) and lights in 2 rooms. But for example temperature still works fine.
Do you have any idea what wrong?
When I look in http://192.168.1.xx:xx/data/LoxAPP3.json, UUID for missing entities are there.
For last mont, I make upgrade of HomeAssistan to 2024.08 version and also change (and reboot) loxone program (only small things not about missing entities).
I try new HA installation (with pyLoxone only) but the result was the same.
2024-09-13 10:41:56.514 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up loxone platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/loxone/binary_sensor.py", line 85, in async_setup_entry
entities.append(LoxoneDigitalSensor(**sensor))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/loxone/binary_sensor.py", line 116, in __init__
self._state_uuid = self.states["areAlarmSignalsOff"]
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'areAlarmSignalsOff'
hello all together.
I am a Loxone guru and now installed Home Asissstant on my Raspberry Pi for further integration of some devices which are not yet integrated.
I installed PyLoxone and connection is up and running.
But how can I now connect/link Entities (for examle Grohe Guard Temperature) with the Virtual Input I created for that Purpose?