Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capteur UV VEML6070 non reconnu #20

Closed
kaaw69 opened this issue May 5, 2021 · 8 comments
Closed

Capteur UV VEML6070 non reconnu #20

kaaw69 opened this issue May 5, 2021 · 8 comments

Comments

@kaaw69
Copy link

kaaw69 commented May 5, 2021

Hello,
I regularly use Tasmoticz which works very well but I recently added a UV sensor VEML6070 and the information does not go up in Domoticz. Attached is the log retrieved from Tasmota.

MQT: tele/Garage3/SENSOR = {"Time":"2021-05-05T08:57:42","ENERGY":{"TotalStartTime":"2021-05-05T00:00:00","Total":141.069,"Yesterday":130.159,"Today":137.318,"Period":4,"Power":205,"ApparentPower":373,"ReactivePower":312,"Factor":0.55,"Frequency":50,"Voltage":227,"Current":1.647},"VEML6070":{"UvLevel":1373,"UvIndex":1.84,"UvIndexText":"Low","UvPower":0.046},"ESP32":{"Temperature":21.1},"TempUnit":"C"}

Thank you in advance for your reply.

Laurent

@joba-1
Copy link
Owner

joba-1 commented May 5, 2021

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?

@kaaw69
Copy link
Author

kaaw69 commented May 5, 2021

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

joba-1 added a commit that referenced this issue May 5, 2021
@joba-1
Copy link
Owner

joba-1 commented May 5, 2021

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

@joba-1
Copy link
Owner

joba-1 commented May 5, 2021

Do you know the proper units for Index and level?

@kaaw69
Copy link
Author

kaaw69 commented May 5, 2021

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

@joba-1
Copy link
Owner

joba-1 commented May 5, 2021

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

@kaaw69
Copy link
Author

kaaw69 commented May 5, 2021

Super it works

Thank you so much

@joba-1
Copy link
Owner

joba-1 commented May 5, 2021

great. merged in master.

@joba-1 joba-1 closed this as completed May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants