How to send BME680 Pressure and AQI values to domoticz
Moderators: grovkillen, Stuntteam, TD-er
-
- New user
- Posts: 6
- Joined: 19 Jun 2023, 19:13
How to send BME680 Pressure and AQI values to domoticz
Hi,
I am having trouble sending only pressure and aqi values of BME680 sensor to domoticz server. I have tried rules like the following:
on BME680#AQI
do
SendToHTTP 192.168.0.115,8080,/json.htm?username=YWRtaW4=&password=ZG9tb3RpY3o=&type=command¶m=udevice&idx=3&nvalue=0&svalue=[BME680#AQI]
endon
What am I missing out? Please anyone guide as I am a newbie here.
Thank you.
I am having trouble sending only pressure and aqi values of BME680 sensor to domoticz server. I have tried rules like the following:
on BME680#AQI
do
SendToHTTP 192.168.0.115,8080,/json.htm?username=YWRtaW4=&password=ZG9tb3RpY3o=&type=command¶m=udevice&idx=3&nvalue=0&svalue=[BME680#AQI]
endon
What am I missing out? Please anyone guide as I am a newbie here.
Thank you.
Last edited by abyrocks4sure on 21 Jun 2023, 14:49, edited 1 time in total.
Re: How to send BME680 Pressure and AQI vales to domoticz
You can get some help from these threads:
viewtopic.php?t=8523
https://www.domoticz.com/forum/viewtopic.php?t=27541
viewtopic.php?t=8523
https://www.domoticz.com/forum/viewtopic.php?t=27541
Re: How to send BME680 Pressure and AQI vales to domoticz
Placing the 'do' at the same line as 'on BME680#AQI' might help.abyrocks4sure wrote: ↑19 Jun 2023, 19:28 on BME680#AQI do
SendToHTTP 192.168.0.115,8080,/json.htm?username=***=&password=***=&type=command¶m=udevice&idx=3&nvalue=0&svalue=[BME680#AQI]
endon
NB: You might want to edit your post and replace the username and password with something else, like I did... they are very easy to decode
/Ton (PayPal.me)
Re: How to send BME680 Pressure and AQI vales to domoticz
Please stop posting useless replies.bidrohini wrote: ↑19 Jun 2023, 20:04 You can get some help from these threads:
viewtopic.php?t=8523
https://www.domoticz.com/forum/viewtopic.php?t=27541
/Ton (PayPal.me)
-
- New user
- Posts: 6
- Joined: 19 Jun 2023, 19:13
Re: How to send BME680 Pressure and AQI vales to domoticz
I tried with "do" in the same line but no success. Please help with just this one and I will be forever indebted to you guys.Ath wrote: ↑19 Jun 2023, 20:06Placing the 'do' at the same line as 'on BME680#AQI' might help.abyrocks4sure wrote: ↑19 Jun 2023, 19:28 on BME680#AQI do
SendToHTTP 192.168.0.115,8080,/json.htm?username=***=&password=***=&type=command¶m=udevice&idx=3&nvalue=0&svalue=[BME680#AQI]
endon
NB: You might want to edit your post and replace the username and password with something else, like I did... they are very easy to decode
NB: The username and password are just the default ones...so no worries!
-
- New user
- Posts: 6
- Joined: 19 Jun 2023, 19:13
Re: How to send BME680 Pressure and AQI vales to domoticz
I have gone through the first link in detail however my case is that just to send custom readings to domoticz via SendtoHTTP command.bidrohini wrote: ↑19 Jun 2023, 20:04 You can get some help from these threads:
viewtopic.php?t=8523
https://www.domoticz.com/forum/viewtopic.php?t=27541
The second link is too complicated for me to take on.
If any other way out then please suggest.
Thanks for all your efforts.
Re: How to send BME680 Pressure and AQI vales to domoticz
I know Domoticz is rather picky at the formatting of the values.
There are nvalue and svalue. (numerical and string values)
Some 'sensor types' require one and some the other.
So you could try to use the other one for testing.
Another way is to simply create a full URL for this and try it in your browser to make sure it actually is working.
Or you could add a dummy task in ESPEasy and simply 'copy' those AQI values to this dummy and then call 'taskrun' on that dummy task.
This will 'flush' the values to the connected controllers, so you need to link it to the Domoticz controller and set the correct IDX value. (3 in your SendToHTTP code)
The rules would then be something like this (assuming the dummy task is called "dummy" and has a task value called "AQI")
There are nvalue and svalue. (numerical and string values)
Some 'sensor types' require one and some the other.
So you could try to use the other one for testing.
Another way is to simply create a full URL for this and try it in your browser to make sure it actually is working.
Or you could add a dummy task in ESPEasy and simply 'copy' those AQI values to this dummy and then call 'taskrun' on that dummy task.
This will 'flush' the values to the connected controllers, so you need to link it to the Domoticz controller and set the correct IDX value. (3 in your SendToHTTP code)
The rules would then be something like this (assuming the dummy task is called "dummy" and has a task value called "AQI")
Code: Select all
on BME680#AQI do
TaskValueSet,dummy,aqi,%eventvalue1%
TaskRun,dummy
endon
-
- New user
- Posts: 6
- Joined: 19 Jun 2023, 19:13
Re: How to send BME680 Pressure and AQI vales to domoticz
If any thread or documentation link to perform the above, I will be very grateful.Or you could add a dummy task in ESPEasy and simply 'copy' those AQI values to this dummy and then call 'taskrun' on that dummy task.
This will 'flush' the values to the connected controllers, so you need to link it to the Domoticz controller and set the correct IDX value. (3 in your SendToHTTP code)
Re: How to send BME680 Pressure and AQI vales to domoticz
I see. Since nobody was answering, I tried to assist with what I thought was helpful. Hope you did not mind. Nice to see you received many helpful replies afterwards.abyrocks4sure wrote: ↑20 Jun 2023, 06:05I have gone through the first link in detail however my case is that just to send custom readings to domoticz via SendtoHTTP command.bidrohini wrote: ↑19 Jun 2023, 20:04 You can get some help from these threads:
viewtopic.php?t=8523
https://www.domoticz.com/forum/viewtopic.php?t=27541
The second link is too complicated for me to take on.
If any other way out then please suggest.
Thanks for all your efforts.
Who is online
Users browsing this forum: No registered users and 1 guest