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

sendToDomoticz gives no result #111

Open
zozolpl opened this issue Jan 20, 2022 · 4 comments
Open

sendToDomoticz gives no result #111

zozolpl opened this issue Jan 20, 2022 · 4 comments

Comments

@zozolpl
Copy link

zozolpl commented Jan 20, 2022

Hello, Im trying to retrieve values on domoticz, but it is not working.
I added Dummy in domoticz, created Virtual Device as Temp+Hum, it gets IDX 19
Then I eddited sendToDomoticz.py to
domoticzserver = "127.0.0.1:8080" #script work on the same raspbery where domoticz stands
idx_temp = "19"

When I run $ /usr/bin/python3 ~/domoticz/scripts/python/MiTemperature2/LYWSD03MMC.py -d A4:C1:38:B8:CF:1C -r -b -c 1 -call ./sendToDomoticz.py output:

`---------------------------------------------
MiTemperature2 / ATC Thermometer version 5.0

Please read README.md in this folder. Latest version is available at https://github.com/JsBergbau/MiTemperature2#readme
This file explains very detailed about the usage and covers everything you need to know as user.

Trying to connect to A4:C1:38:B8:CF:1C
Temperature: 24.6
Humidity: 47
Battery voltage: 3.262 V
Battery level: 100
1 measurements collected. Exiting in a moment.
/home/pi/domoticz/scripts/python/MiTemperature2/./sendToDomoticz.py sensorname,temperature,humidity,voltage,batteryLevel,timestamp A4:C1:38:B8:CF:1C 24.6 47 3.262 100 1642682285
`

So everything looks good, but in Domoticz Im not reading values - it still shows 0C and 50% humidity

@findryDev
Copy link

Do you have a password-protected domoticz?

@zozolpl
Copy link
Author

zozolpl commented Jan 20, 2022

Yes, but Ive added my local networks IP to disable passwords

EDIT:
I turned it off and now it works
Is there a way to make it working with password protecting on?

@findryDev
Copy link

I used IP: "127.0.0.1;192.168.0.*" in password disable network address.

@zozolpl
Copy link
Author

zozolpl commented Jan 20, 2022

I found the bug - I had a space after first ; and the others IP didn't work as a local area network

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