The temperature line from the sensor on the main page should be something like
DS1820 Temperature: -20.1 C (read 4 secs ago)
Could you please check for that line?
Added after 8 [minutes]:And: what's the value of CH 2 shown on main page?
Added after 2 [hours] 11 [minutes]:I don't use HA, so I can only look into the "main page" atm.
Just did a quick try here, and it seems o.k. (will take a deeper look this afternoon:
Added after 2 [hours] 59 [minutes]:O.k., tried here with a W800. This is one device without internal (CPU-)Temperature in GUI, it will allways schow "0" there.
To get "Temperature" on the Main page, you will need to set this channel (2 in your config) to type "Temperature_div100" (in Web Application or as User command "setChannelType 2 Temperature_div100").
The "temp" in MQTT is the internal CPU-Temperature (its 0.0 with my W800, too).
In order to get the DS1820 value, you will need to publish the value:
will give the integer value of 100*temperature (so -20.81 will be -2081 there).
Or you add a regular publishing of the float value (you might need to enable "#define ENABLE_EXPAND_CONSTANT 1" in the obk_config.h file for your platform to make "calculation" work):
addRepeatingEvent 5 -1 publishFloat DS1820Temp $CH2/100
This is how it looks here (with channel 4 for my DS1820):
Added after 2 [hours] 36 [minutes]: imvaloo wrote: modified this energy metering plug to include a DS1820B temperature sensor
Out of curiosity: did you (how) do a galvanic isolation?
These plugs usually have live voltage potential on the GND/Vcc of CPU so I would never use a sensor outside the plugs case without this security measure.