Hi,
I have a problem with graph and Sonoff TH with firm Tasmota and mqtt 2.4. Everything works (switch, temperature reading) but it doesn’t create a graph, it always appears in value 0. I have more graphics and with other sensors (Xiaomi) and they work perfectly. I have also tried in Habpanel and it shows me the same thing. Before writing, I’ve been looking for a solution but everything I’ve tried has not worked for me.Thank you very much for your help!
Hardware: Raspberry PI 3B
OS: openHABian v1.4.1
Java Runtime Environment: openjdk version “1.8.0_152”
OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8 .0_152-b76)
OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 25.152-b76, m ixed mode, Evaluation)
openHAB version: openHAB 2
I can't get graph temperature from Sonoff TH, always gives value 0
**Thing configuration related to the issue**
Thing topic sonofftempplacsolar "Temperatura placa solar" @ "Terrado" {
Channels:
Type string : reachable "Estado" [ stateTopic="tele/sonofftempplacsolar/LWT" ]
Type switch : power "Está" [ stateTopic="stat/sonofftempplacsolarPOWER", commandTopic="cmnd/sonofftempplacsolar//POWER" ]
Type number : rssi "Potencia señal wifi" [ stateTopic="tele/sonofftempplacsolar/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI" ]
Type string : temperature "Temperatura" [ stateTopic="tele/sonofftempplacsolar/SENSOR", transformationPattern="JSONPATH:$.DS18B20.Temperature" ]
**Items configuration related to the issue**
// Temperatura placa solar terrado
String TemperaturaPlacaSolar_Estado_Reachable "Estado[%s]" <contactable> (Home, SF_SegundaPlanta, SF_Terrado, SF_PlacaSolar, SF_RelesTerrado) { channel="mqtt:topic:681400fe:sonofftempplacsolar:reachable" }
Switch TemperaturaPlacaSolar_Est_Power "Está[MAP(sonoffmotor.map):%s]" (Home, SF_SegundaPlanta, SF_Terrado, SF_PlacaSolar, SF_RelesTerrado) [ "Switchable" ] { channel="mqtt:topic:681400fe:sonofftempplacsolar:power" }
Number TemperaturaPlacaSolar_PotenciaSeAlWifi "Potencia señal wifi [%d %%]" (Home, SF_SegundaPlanta, SF_Terrado, SF_PlacaSolar, SF_RelesTerrado) { channel="mqtt:topic:681400fe:sonofftempplacsolar:rssi" }
String TemperaturaPlacaSolar_Temperatura_Temperature "Temperatura[%s °C]" <temp> (Home, SF_SegundaPlanta, SF_Terrado,SF_PlacaSolar, SF_SensoresTemperaturaTerrado) { channel="mqtt:topic:681400fe:sonofftempplacsolar:temperature" }
Sitemap configuration related to the issue
Frame label="Relé placa solar temperatura"
Switch item=TemperaturaPlacaSolar_Est_Power label="Está[]"
Text item=TemperaturaPlacaSolar_Estado_Reachable label="Conexión[%s]"
Text item=TemperaturaPlacaSolar_PotenciaSeAlWifi label="Potencia señal wifi[%d %%]" icon="qualityofservice"
Frame label="Gráfica diaria" {
Chart item=TemperaturaPlacaSolar_Temperatura_Temperature icon="temperature" label="Temp Chart" refresh=60000 period=D service="influxdb"
Influxdb.persist file related to the issue
Strategies
{
everyMinute : "0 * * * * ?"
every2Minutes : "0 */2 * ? * *"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
}
Items {
TemperaturaPlacaSolar_Temperatura_Temperature: strategy = everyUpdate, everyMinute, restoreOnStartup
}
´´´
It's giving me the temperature but graph is alway in 0:
