Hey guys,
In Austria the P1 interface is encrypted. I already activated it and obtained the encryption key. But if I want to add my smart meter there is only the option to add 1 key. But I got 2, Global Unicast Encryption Key (GUEK) & Global Authentication Key (GAK). I tried entering both keys
separately to see if one is working, but it won't show the smart meter in my devices.
Then I tried to see if my raspberry gets any data from the smart meter with the sudo command, the permission got denied, i think because of the encryption.
Is there a way to type in both encryption keys?
Thanks for helping and sorry for my bad english!
Sagemcom T210-D Encryption
Moderator: leecollings
-
- Posts: 2
- Joined: Tuesday 07 September 2021 15:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Sagemcom T210-D Encryption
- Attachments
-
- RASP.PNG (34.48 KiB) Viewed 1037 times
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Sagemcom T210-D Encryption
Perhaps there is an Austrian version of https://github.com/mweimerskirch/smarty_dsmr_proxy (luxemburg P1 bridge) to test the P1 telegram?
Did you disable the P1 hardware in Domoticz before you tested it with cu? Else Domoticz could block the USB port and you get the same error.
Can you get hold on the specifications of the Austrian P1 telegram as there are different implementations of P1 telegrams per country resulting in incorrect or no reading in Domoticz
For the implementation of the Encription for Luxembourg check https://github.com/domoticz/domoticz/issues/2738
In the end there should be a new issue created to implement the Austrian version if possible.
Edit: a quick search brought me to Salzburgernetz: Technische Beschreibung Kundenschnittstelle: https://www.salzburgnetz.at/content/dam ... stelle.pdf
Edit2: Austrian smart meter C# project https://github.com/culvermelanie/SmartMeter
Did you disable the P1 hardware in Domoticz before you tested it with cu? Else Domoticz could block the USB port and you get the same error.
Can you get hold on the specifications of the Austrian P1 telegram as there are different implementations of P1 telegrams per country resulting in incorrect or no reading in Domoticz
For the implementation of the Encription for Luxembourg check https://github.com/domoticz/domoticz/issues/2738
In the end there should be a new issue created to implement the Austrian version if possible.
Edit: a quick search brought me to Salzburgernetz: Technische Beschreibung Kundenschnittstelle: https://www.salzburgnetz.at/content/dam ... stelle.pdf
Edit2: Austrian smart meter C# project https://github.com/culvermelanie/SmartMeter
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 2
- Joined: Tuesday 07 September 2021 15:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Sagemcom T210-D Encryption
Thanks, I'm fairly new to programming, so I will need some time to get through all of this.
And yes I disabled Domoticz before I tested it with the sudo command.
I'll give an update if it works.
And yes I disabled Domoticz before I tested it with the sudo command.
I'll give an update if it works.
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Sagemcom T210-D Encryption
To help you there is someone who adapted the python proxy tot an austrian version: https://github.com/tknaller/smarty_dsmr_proxy
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Sagemcom T210-D Encryption
You could try to run
I am not that knowledgeable on decrypting so you could play with the value of KEY being your GUEK or GAK and the same for AAD. Default value of AAD is "3000112233445566778899AABBCCDDEEFF" so if your GUEK or GAK is like this you can skip -a AAD.
Code: Select all
python3 decrypt.py KEY -a AAD
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Sagemcom T210-D Encryption
The correct test should be
More info at https://github.com/tknaller/smarty_dsmr ... t-56398418
Code: Select all
python3 /smarty_dsmr_proxy/decrypt.py ENCRYPTION KEY --serial-input-port=/dev/ttyDSMR --serial-output-port=/dev/pts/1
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest