joba-1 / Tasmoticz

Domoticz MQTT autodiscovery plugin for Tasmota devices
MIT License
24 stars 18 forks source link

Sonoff TH10 with SI7021 #9

Open Eddie-BS opened 4 years ago

Eddie-BS commented 4 years ago

Hi, I have a couple of TH10 with SI7021 temperature sensors running latest tasmota. the switch part is discoverd by the plugin but the temperature part not. any suggestions ? Eddie

joba-1 commented 4 years ago

Do as described in the readme file :)

Please provide a log containing the sensor messages. You can get that e.g. from the web log of your device.

Eddie-BS commented 4 years ago

you mean like this ? 09:16:28 MQT: stat/temp2/STATUS10 = {"StatusSNS":{"Time":"2019-09-24T09:16:28","SI7021":{"Temperature":25.1,"Humidity":56.0},"TempUnit":"C"}}

joba-1 commented 4 years ago

Should be enough. I‘ll add it soon.

Eddie-BS commented 4 years ago

great, tnx

joba-1 commented 4 years ago

Added support for SI7021. As I don't have the sensor, please test it and close the issue if it works.

Eddie-BS commented 4 years ago

Ok, it sort-off works ... sensors are detected but as separate devices. Is it possible to combine them ? temp and humidity in 1 device ? `

    130 tasmota F866979C 15 temp1 Feuchtigkeit Humidity LaCrosse TX3 Humidity 60 % - -   2019-09-24 16:35:18
    129 tasmota F866979C 14 temp1 Temperatur Temp LaCrosse TX3 21.4 C - -   2019-09-24 16:35:18

`

if created manually, they look like :

`

88 Dummy 140A8 1 Temp1 Temp + Humidity THGN122/123/132, THGR122/228/238/268 21.4 C, 60 % 7     2019-09-24 16:35:18

`

Names are greated in german, why ? My system might be running in dutch, otherwise in english, nothing german on my side

Eddie

joba-1 commented 4 years ago

Thanks for the feedback.

both concerns already have an open issue.

temp/hum and other combinations supported by domoticz are high on my own wish list.

I am german, so I hardcoded text I could not get from the device in german (basically the sensor types). I still investigate on how to do proper translations in domoticz python plugins and how to detect the users language - currently I have no idea... For now, all you could do is hardcode your language in tasmota.py sensor dict. Sorry