arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.96k stars 4.77k forks source link

SCD30 temp and humidity idx domoticz #6059

Closed martijnr17 closed 5 years ago

martijnr17 commented 5 years ago

I have a new SCD30 sensor which works good in the web interface of Tasmota but sending the information to domoticz goes wrong. "Sensor idx 9 AirQuality" is working but "Sensor idx 2 Temp,Hum" NOT.

00:18:15 MQT: domoticz/in = {"idx":1,"nvalue":614,"Battery":200,"RSSI":8}
00:18:15 MQT: tele/F1.18temphumco2/SENSOR = {"Time":"1970-01-01T00:18:15","SCD30":{"CarbonDioxide":614,"eCO2":636,"Temperature":25.7,"Humidity":48.3},"TempUnit":"C"}
STATUS 0 OUTPUT HERE:
00:27:50 CMD: STATUS 0
00:27:50 MQT: stat/F1.18temphumco2/STATUS = {"Status":{"Module":18,"FriendlyName":["Sonoff"],"Topic":"F1.18temphumco2","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://thehackbox.org/tasmota/release/020402/sonoff-sensors.bin","RestartReason":"Software/System restart","Uptime":"0T00:27:50","StartupUTC":"","Sleep":50,"CfgHolder":4617,"BootCount":21,"SaveCount":52,"SaveAddress":"F8000"}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS2 = {"StatusFWR":{"Version":"6.6.0(sensors)","BuildDateTime":"2019-07-06T13:40:10","Boot":31,"Core":"2_4_2","SDK":"2.2.1(cfd48f3)"}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["PaswerkWifi",""],"TelePeriod":60,"Resolution":"558180C0","SetOption":["00008009","280500000100060000000000000000000000","00000000"]}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS4 = {"StatusMEM":{"ProgramSize":562,"Free":440,"Heap":15,"ProgramFlashSize":1024,"FlashSize":4096,"FlashChipId":"164020","FlashMode":2,"Features":["00000809","0FDEE396","0017A3A4","B7FFBFCD","01DABBC0"]}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS5 = {"StatusNET":{"Hostname":"F1.18temphumco2-3724","IPAddress":"10.3.201.159","Gateway":"10.3.0.1","Subnetmask":"255.255.0.0","DNSServer":"10.3.0.2","Mac":"BC:DD:C2:14:6E:8C","Webserver":2,"WifiConfig":4}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS6 = {"StatusMQT":{"MqttHost":"10.1.3.1","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_146E8C","MqttUser":"DVES_USER","MqttCount":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":30}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS7 = {"StatusTIM":{"UTC":"Thu Jan 01 00:27:50 1970","Local":"Thu Jan 01 00:27:50 1970","StartDST":"Thu Jan 01 00:00:00 1970","EndDST":"Thu Jan 01 00:00:00 1970","Timezone":"+00:00","Sunrise":"07:43","Sunset":"16:03"}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS10 = {"StatusSNS":{"Time":"1970-01-01T00:27:50","SCD30":{"CarbonDioxide":603,"eCO2":630,"Temperature":25.7,"Humidity":48.7},"TempUnit":"C"}}
00:27:50 MQT: stat/F1.18temphumco2/STATUS11 = {"StatusSTS":{"Time":"1970-01-01T00:27:50","Uptime":"0T00:27:50","Heap":16,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"Wifi":{"AP":1,"SSId":"PaswerkWifi","BSSId":"78:8A:20:84:1C:3D","Channel":11,"RSSI":82,"LinkCount":1,"Downtime":"0T00:00:05"}}}

SCREENSHOTS

If applicable, add screenshots to help explain your problem. afbeelding afbeelding

ascillato2 commented 5 years ago

Hi,

Thanks for reporting :+1:

Made the Pull Request #6061 so as to add the feature for sending Temperature and Humidity to Domoticz from SCD30 Sensors.

Thanks.