Code Monkey home page Code Monkey logo

Comments (8)

joba-1 avatar joba-1 commented on May 30, 2024

Didn't have time for tasmoticz lately, but the message looks like it should be picked up and create devices for it in domoticz.
Do you have a log from the time you added the device?

from tasmoticz.

kaaw69 avatar kaaw69 commented on May 30, 2024

I am currently recovering manually on IDX 1047 from domoticz (solar radiation) the value transmitted by tasmota = Sensor idx 5 Illuminance which corresponds to VEML6070 UV Level.
However, I do not have the info for VEML6070 UV Index and VEML6070 UV POWER.

2021-05-05 11:23:41.870 Python Plugin System: (Tasmoticz) Handler::onMQTTPublish: topic: tele/Garage3/STATE
2021-05-05 11:23:41.871 Python Plugin System: (Tasmoticz) Handler::onMQTTPublish: device: Garage3, cmnd: cmnd/Garage3, tail: STATE, message: {'Time': '2021-05-05T11:23:41', 'Uptime': '0T06:20:13', 'UptimeSec': 22813, 'Heap': 211, 'SleepMode': 'Dynamic', 'Sleep': 50, 'LoadAvg': 19, 'MqttCount': 1, 'POWER1': 'OFF', 'POWER2': 'OFF', 'POWER3': 'OFF', 'POWER4': 'OFF', 'Wifi': {'AP': 1, 'SSId': 'Lolo', 'BSSId': '00:11:32:B6:13:BE', 'Channel': 9, 'RSSI': 52, 'Signal': -74, 'LinkCount': 1, 'Downtime': '0T00:00:07'}}
2021-05-05 11:23:41.871 Python Plugin System: (Tasmoticz) tasmota::findDevices: fullName: Garage3, Idxs [1, 2, 3, 28, 29, 30, 31, 32, 33, 34, 37, 38, 39, 40]
2021-05-05 11:23:42.279 MQTT: Topic: domoticz/in, Message: {"idx":1038,"nvalue":0,"svalue":"207;141771.0","Battery":100,"RSSI":5}
2021-05-05 11:23:42.291 Python Plugin System: (Tasmoticz) Handler::onMQTTPublish: topic: tele/Garage3/SENSOR
2021-05-05 11:23:42.292 Python Plugin System: (Tasmoticz) Handler::onMQTTPublish: device: Garage3, cmnd: cmnd/Garage3, tail: SENSOR, message: {'Time': '2021-05-05T11:23:41', 'ENERGY': {'TotalStartTime': '2021-05-05T00:00:00', 'Total': 141.771, 'Yesterday': 130.159, 'Today': 138.02, 'Period': 5, 'Power': 207, 'ApparentPower': 387, 'ReactivePower': 327, 'Factor': 0.54, 'Frequency': 50, 'Voltage': 232, 'Current': 1.664}, 'VEML6070': {'UvLevel': 4098, 'UvIndex': 5.49, 'UvIndexText': 'Mid', 'UvPower': 0.137}, 'ESP32': {'Temperature': 22.2}, 'TempUnit': 'C'}
2021-05-05 11:23:42.292 Python Plugin System: (Tasmoticz) tasmota::findDevices: fullName: Garage3, Idxs [1, 2, 3, 28, 29, 30, 31, 32, 33, 34, 37, 38, 39, 40]
2021-05-05 11:23:42.293 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:32, Attr: ENERGY-Total, nValue: 0, sValue: 141.771
2021-05-05 11:23:42.321 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:34, Attr: ENERGY-Today, nValue: 0, sValue: 138.02
2021-05-05 11:23:42.349 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:1, Attr: ENERGY-Power, nValue: 0, sValue: 207
2021-05-05 11:23:42.361 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:2, Attr: ENERGY-ApparentPower, nValue: 0, sValue: 387
2021-05-05 11:23:42.391 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:37, Attr: ENERGY-ReactivePower, nValue: 0, sValue: 327
2021-05-05 11:23:42.409 MQTT: Topic: domoticz/in, Message: {"idx":1047,"nvalue":0,"svalue":"4098","Battery":100,"RSSI":5}
2021-05-05 11:23:42.434 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:38, Attr: ENERGY-Factor, nValue: 0, sValue: 0.54
2021-05-05 11:23:42.457 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:39, Attr: ENERGY-Voltage, nValue: 0, sValue: 232
2021-05-05 11:23:42.481 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:40, Attr: ENERGY-Current, nValue: 0, sValue: 1.664
2021-05-05 11:23:42.505 Python Plugin System: (Tasmoticz) tasmota::updateValue: Idx:3, Attr: ESP32-Temperature, nValue: 0, sValue: 22.2

IMG1
IMG2

from tasmoticz.

joba-1 avatar joba-1 commented on May 30, 2024

I created branch veml6070 and added the sensor in tasmota.py. You can try exchanging https://github.com/joba-1/Tasmoticz/raw/veml6070/tasmota.py

from tasmoticz.

joba-1 avatar joba-1 commented on May 30, 2024

Do you know the proper units for Index and level?

from tasmoticz.

kaaw69 avatar kaaw69 commented on May 30, 2024

Thank you for the prompt response

In my opinion,
Index = UVI
level is not important and I do not know the unit of measurement.
We must take into account the W / m2 and the UV index (UVI) for Domoticz

from tasmoticz.

joba-1 avatar joba-1 commented on May 30, 2024

ok, changed the units. Let me know if it works and I'll transfer it to the master branch.

from tasmoticz.

kaaw69 avatar kaaw69 commented on May 30, 2024

Super it works

Thank you so much

from tasmoticz.

joba-1 avatar joba-1 commented on May 30, 2024

great. merged in master.

from tasmoticz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.