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

Solar value in LUX #1

Closed
codystoica opened this issue Dec 12, 2021 · 6 comments
Closed

Solar value in LUX #1

codystoica opened this issue Dec 12, 2021 · 6 comments

Comments

@codystoica
Copy link

Hello!
You did a great job with these plugins. From my point of view, they are the most useful of all domoticz plugins, but strangely, they have not been approached by other programmers. I saw that you no longer support for improvement but I wonder if it is possible to import from my PWS the LUX value form solar sensor. All data is imported correctly from PWS WH2650A but I needed LUX value rather than w/m2
Thanks!

@Xorfor
Copy link
Owner

Xorfor commented Dec 12, 2021

Just to be sure: you posted this issue in the Home Assistant PWS, but you are talking about the Domoticz plugin?

And an other question: Your PWS is sending the data of the solar sensor in Lux instead of W/m2? Or do you want the received data to be converted to Lux?
In the last case I can add an extra custom device which will show the solar radiation in Lux.

@codystoica
Copy link
Author

codystoica commented Dec 12, 2021

I really posted by mistake, I didn't notice that you have a plugin for HA PWS, I searched for PWS and ... sorry
in my case it's Domoticz.
The PWS sensor transmits the information in three preselected modes fc, lux and w / m2.
Domiticz imports only in w / m2. I need the values ​​in LUX especially when the value in w / m2 is 0.0, I noticed that Domoticz imports only one decimal place.
For example, when Domoticz displays the value 0.0, the station reports 4 lux or 0.02 w / m2. I don't think a converter would help because I don't know the conversion factor for my sensor, it would help me the most for Domoticz to import the value of the solar sensor directly into LUX
Domoticz
W_m2
lux

@Xorfor
Copy link
Owner

Xorfor commented Dec 12, 2021

I just placed a new version on https://github.com/Xorfor/Domoticz-PWS-Plugin.
The plugin will create an extra device (no default), named Solar Radiation, but with Lux as unit.

Can you please test this one? As far as I can see, it should work.

Be aware that W/m2 is the official SI unit for solar radiation.

@codystoica
Copy link
Author

Hello again!
I installed the update successfully, the new custom device appeared in Domoticz and shows solar radiation in LUX, only at low values ​​what interests me does not calculate. From what I noticed, if the value in w/m2 that PWS transmits is less than 0.1w/m2, the conversion is no longer done. Script does not import values with two decimal.
e.g. 0.09w/m2 * 126.7 = 11 lux but in domoticz I get 0.
Do you think you can solve this problem, I really need the values ​​when they are between 1 and 10 lux

@Xorfor
Copy link
Owner

Xorfor commented Dec 14, 2021

I found the problem and fixed it. If I have 0.05 W/m2, Domoticz will display 0.1 W/m2 and 6 Lux.

Please pull the latest version and let me know.

@codystoica
Copy link
Author

It seems to be working as it should.
Thank you very much for your time, you are the best!

@Xorfor Xorfor closed this as completed Dec 17, 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