See the documentation, as it does also mention the option to show 2 temperatures:
https://espeasy.readthedocs.io/en/lates ... #p073-page
The syntax of such command would be something like this:
So let's assume you have either 2 tasks (named: "DS1" and "DS2") with each a task value named "temperature", or...
you have 1 task named "DS" with 2 task values like "temperature1" and "temperature2".
In either way, you can refer to these task values like this:
[taskname#taskvaluename]
Thus in the first setup (2 tasks) you get these:
[DS1#temperature] and [DS2#temperature]
For the other use case (1 task, two taskvalues), you get:
[DS#temperature1] and [DS#temperature2]
So the code should be something like this:
Code: Select all
On DS#temperature1 do
7ddt,[DS#temperature1],[DS#temperature2]
endon
But this may cause the displayed samples to "get out of sync", meaning you may look at the previous sample of the 2nd sensor.
This can be solved in many ways, but I think the easiest way is to update the screen on both events:
Code: Select all
On DS#temperature1 do
7ddt,[DS#temperature1],[DS#temperature2]
endon
On DS#temperature2 do
7ddt,[DS#temperature1],[DS#temperature2]
endon
N.B. this can be written in shorter code, but just for you to easily understand what's going on, let's keep it a bit more verbose.
Also, after you got this working, you can also consider connecting both 1wire temperature sensors to the same GPIO pin as that's how it is intended with 1wire devices.
Best not to use GPIO16 for this, as it is a bit 'special' on ESP8266.