Hi all,
I’ve recently purchased a Sonoff POW R2 and flashed it with the tasmota KNX firmware since I have my entire home running on KNX & Openhab.
I’m able to control the switch and toggle the relay. All fine here, but, since I can also get the energy telemetry, I want to setup for each telemetry value a specific GA in my things config file and the related config in my item config file to read those values and visualize them. Now, I’ve done that for the voltage value, but in Paper UI I only see a -NaN value.
To understand what is happening, I’ve enabled the calimero tracing to check that the KNX telegrams are received with:
log:set TRACE org.openhab.binding.knx
log:set TRACE calimero
I see all the telemetry values in the OH log and it seems that they are correctly assigned to the related GA but can’t visualize them. Why?
The following is the setup of my flashed Sonoff:
This is the tracing of the messages in the Sonoff console, so the telemetry values are assigned.
07:52:07 KNX: Voltage sent to 2.2.0
07:52:07 KNX: Current sent to 2.2.1
07:52:07 KNX: Power sent to 2.2.2
07:52:07 KNX: Power Factor sent to 2.2.3
07:52:07 KNX: Energy Today sent to 2.2.4
07:52:07 KNX: Energy Total sent to 2.2.6
07:52:07 KNX: Energy Yesterday sent to 2.2.5
07:52:07 RSL: SENSOR = {“Time”:“2020-05-04T07:52:07”,“ENERGY”:{“TotalStartTime”:“2020-04-30T21:49:47”,“Total”:0.004,“Yesterday”:0.004,“Today”:0.000,“Period”:0,“Power”:0,“ApparentPower”:0,“ReactivePower”:0,“Factor”:0.00,“Voltage”:0,“Current”:0.000}}
This is the setup in my Things file:
Bridge knx:ip:EK-BB1-TP-R "EKINEX KNX/IP Interface" @ "KNX" [
type="ROUTER",
ipAddress="224.0.23.12",
portNumber=3671,
localIp="192.168.x.x",
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=60,
localSourceAddr="0.0.0" ]
{
Thing device SONOFF-TP_17 "Switch Actuator 2" @ "KNX" [ address="1.1.20", fetch=false, pingInterval=0, readInterval=0 ]
{
Type switch-control: Ch_170_Control "Channel 17.0 Control" [ ga="2/0/0" ]
Type switch: Ch_171 "Channel 17.1" [ ga="2/0/0+2/0/1" ]
Type number : Ch_172 "Voltage" [ ga="2/2/0" ]
}
}
This is the output I receive on the openhab.log (please focus on ga 2/2/0)
2020-05-04 09:17:00.936 [DEBUG] [nx.internal.client.AbstractKNXClient] - Wrote value ‘ON’ to datapoint ‘command DP 2/0/0 ‘knx:ip:EK-BB1-TP-R’, DPT id 1.001, low priority’ (0. attempt).
2020-05-04 09:17:01.028 [WARN ] [p.KNXnet/IP Routing 224.0.23.12:3671] - received frame length 0 for KNXnet/IP routing.ind (0x530 v1.0) length 17 - ignored
2020-05-04 09:17:01.030 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from ‘1.1.20’ to ‘2/0/0’ with value ‘[1]’
2020-05-04 09:17:01.030 [DEBUG] [calimero.link.224.0.23.12:3671 ] - indication 1.1.20->2/0/0 L_Data.ind, low priority hop count 6, tpdu 00 81
2020-05-04 09:17:07.012 [DEBUG] [calimero.link.224.0.23.12:3671 ] - indication 1.1.20->2/2/0 L_Data.ind, low priority hop count 6, tpdu 00 80 25 59
2020-05-04 09:17:07.012 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from ‘1.1.20’ to ‘2/2/0’ with value ‘[37, 89]’
Also the voltage values I see in the returned telegram is odd. I would expect a higher Voltage since I’m powering a 202V light bulb and not [37, 89] and why 2 values?
In my Item config file, I have the following entry:
Group gStaircase
Switch L_GF01_01_Staircase "Luce delle scale" <light> (gStaircase) { alexa="Switchable", channel="knx:device:EK-BB1-TP-R:SONOFF-TP_17:Ch_171" }
Number L_GF01_01_Staircase_Voltage "Voltage [%.0f V]" <energy> (gStaircase) { channel="knx:device:EK-BB1-TP-R:SONOFF-TP_17:Ch_172" }
This is what I see on the frontend related to the voltage reading:
Has anyone had a chance to experiment with the Tasmota KNX firmware? And what’s wrong in my settings?
Thanks a lot!!