However, when I look to my group monitoring, the value that Home Assistant is sending is actually different than what my Gira TS (or OpenHAB for that matter) is sending:
trigger.event.data.data of a knx_event is raw data. Raw data of a âscene number 7â is a list with one item: [6,] (see the link I posted above). So trigger.event.data.data[0] is an integer 6 if coming from HA. Your Gira device sends a raw 7 so it matches your current trigger.
If you want to use decoded values in knx_event you can specify the decoder in your configuration.yaml
and then use trigger.event.data.value instead of trigger.event.data.data. This will yield a number, not a list of integers.
(That is especially useful if you use knx_event for float like DPT 9)
Thank you for your reply.
So my KNX devices (such as Gira) and OpenHAB are working with raw data (â7â) whereas HomeAssistant is working with decoded data.
Since I canât change the behaviour of my KNX devices (itâs much more than just my Gira TS), Iâm considering to adjust my Home Assistant scene numbers. Iâll do some trial-and-error but I believe that defining scene number â8â in Home Assistant actually gives me the raw â7â I am looking for.
Some final words⌠Iâm not saying Home Assistant is wrong, but to âincrease compatibilityâ, another attribute (e.g. âscene_number_rawâ) could be added. It could avoid confusion for those who are managing scenes in both HA and in KNX devices.
For sensors, knx.send, events etc. you can always use â1byte_unsignedâ (or just 5).
If you manage scenes in Knx, imho the current notation should always be used. To avoid confusion KNXA has explicitly written that down in their KNX specifications.
Unfortunately not all device applications are implemented properly.
We generally try to stick to the specifications as close as we can and avoid implementing workarounds for bugs or proprietary features of single devices to keep good maintainability lower technical dept.
So⌠since I also have one âGira Tastsensor 3 Komfort 3-fachâ in my Installation I gave this a try. Configuring Scene number 7 does yield a raw 6 on the bus. No matter if I use âwith storage functionâ or âwithoutâŚâ.
I use Application version 1.1 (10D711)
That is very strange. I wouldnât even know where to look to see why the behaviour on my side is different than on your side.
I have the same application version.
Hold on⌠mystery solved. Aargh. I feel so stupid now.
So my OpenHAB (which Iâve set up in 2017 in my defense) is wrong. Apparently, OH wasnât following the DPT specifications. And I fixed it (so it seems) by substracting 1 from the scene number as defined in my Gira TS.
When setting up HA, I was copying over from OpenHAB, instead of looking directly at the KNX config in ETS. While troubleshooting, I was assuming that OH and my KNX devices were in sync (âbecause they both workâ) and since I have many scene numbers I didnât realize that scene number 7 matches scene number 6 in my ETS (and 7 also exists there).
Long story short:
Home Assistant is 100% correct - but I believe your from the start.
My KNX devices (Gira,âŚ) and ETS is 100% correct;
My OpenHAB instance is wrong;
Thanks for taking the time to check your Gira TS. It triggered me to have that one extra check as well.