pasarn
(Pascal)
November 19, 2021, 5:07pm
1
I have create a Blueprint for a Virtual KNX Light. It works like a KNX Switch Actuator with a connected light.
https://gist.github.com/pasarn/ecd9e7d217a4da9ea210c5eab326a0cd
The Blueprint is inspired from farmio KNX - relative dimming for lights Blueprint.
2 Likes
farmio
(Matthias Alphart)
November 19, 2021, 5:51pm
2
So this is a KNX switch for HA lights - nice!
But why do you limit this to the light platform? It could switch any kind of entity, couldn’t it?
pasarn
(Pascal)
November 19, 2021, 6:42pm
3
But why do you limit this to the light platform? It could switch any kind of entity, couldn’t it?
It’s my first Blueprint. I want keep it simple. I think it could with homeassitant.turn_on/off, but not for all entitiys it is useful.
Can I use more than one domain: in the entity selector?
farmio
(Matthias Alphart)
November 19, 2021, 8:40pm
4
hm… doesn’t seem so according to the documentation. what a weird limitation - didn’t expect that.
Sure picking one service for the ON telegram and one for the OFF would probably work too, but wouldn’t be as user friendly.
KTS
July 17, 2022, 7:54am
5
I think I was looking for exactly what you did. Can you please explain it a bit more in detail?
I understood that I have a virtual knx switch that I can put on a physical knx actor/switch to switch light entities in home assistant. Where would I find or set the group address now? And the group address for the status to be able to address the knx switch?
farmio
(Matthias Alphart)
July 17, 2022, 11:44am
6
You set the GAs when you configure an automation from the blueprint - so when setting it up you’ll be asked for the GAs.
Tomek51
(Tomek)
January 16, 2023, 7:50pm
7
Thank you that’s exactly what I was looking for. You can change the entity from switch to light and then it also works with sockets