eWeLinkCUBE / cc.ewelink.mqtt2cube-tasmota.addon

MQTT2CUBE-Tasmota supports synchronizing Tasmota switch/socket devices to eWeLink CUBE control.
MIT License
1 stars 1 forks source link

Add Sesnsor data? #1

Open pluk77 opened 3 months ago

pluk77 commented 3 months ago

What would it take to add other types of devices? How can I help in getting the done?

I have a Sonoff THR316D which is running Tasmota so I can connect two temperature sensors to one device.

I can currently add the device to my iHost via the MQTT, but the device is detected as a switch.

It seems the code is missing to correctly detect other types of devices and/or deal with other MQTT messages, or is the device not publishing the fact that it has sensors?

The device is publishing the following (1 sensor connected) messages

15:03:14.937 MQT: tele/tasmota_BCDB50/STATE = {"Time":"2024-08-28T15:03:14","Uptime":"0T01:45:10","UptimeSec":6310,"Heap":122,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":12,"Objects":166},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"hidden","BSSId":"hidden","Channel":8,"Mode":"HT20","RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:05"}}
15:03:14.958 MQT: tele/tasmota_BCDB50/SENSOR = {"Time":"2024-08-28T15:03:14","DS18B20":{"Id":"3C01F0964D31","Temperature":19.4},"TempUnit":"C"}

From the logs in iHost it looks like only the /STATE message is being processed.

PvaI commented 1 month ago

I have a similar request, you already have the Power consumption and Temperature / Humidity as an optional chart in the ewelink cast dashboard. Is this something that's being developed?

I'd be able to help if you need data or someone to test, I have some 20+ Tasmota devices ranging from simple switches, relays, switches with power consumption, switches with temperature sensors and a tasmota thermostat. Working on some door/window sensors, looking to buy some dimmers.

For reference : forum discussion on this topic here : https://forum.ewelink.cc/t/add-on-guide-mqtt2cube-tasmota-sync-your-tasmota-devices-to-cube/19413/5