Energy Temp Management with Shelly 1PM

Energy and temperature monitoring with WiFi devices Shelly 1PM (with 1-wire temp. sensors). Query of values via HTTP request, assignment of values in KNX DPT and evaluation / temperature monitoring (e.g. refrigerator / freezer).
The Shelly 1PM is connected to the internal network and can be used without a cloud application. Up to 3 temperature sensors can be connected to the 1PM.
http request: /status
The following values, among others, can be used by the Shelly 1PM:
- "unixtime": = timestamp
- "ext_temperature.0.tc": to 2 = temperature in °C
- "temperature": = unit temperature (overheat protection)
- "time": = reading time as text
"emeters":
- "power": = power in W
- "total": = energy in W/min

The following functions are realised with the logic group:
- http query at 5 minute intervals or manual button
- Assigning the values to KNX DPT in the text Processor
- Transmission of the unixtime (time stamp) in KNX formats (date, time)
Comparator -2°C and 8°C
- Temperature monitoring: freezer -2°C, cooler 8°C; notification with temperature information if exceeded.
Mathematics element "Sum values
- The 1PM transmits only the daily energy, calculation of the total energy by daily addition with daily timer and value memory
LUA element "Text output
- Transmission of text with reading time for text display in CUBEVISION

Notes:
1. calculator: conversion from Wmin to kWh
2. delayers, inverters and binary filters: these are used to reset the query button in the visualisation.
3. value memory: so that the values are permanently available for the routines. Note that the value memories are emptied when the logic group is restored and activated.
4. fixed value: to correct the total energy when the logic group is reactivated, as the 1PM only displays daily values.
5. DPT 9.001 (Temperatures), DPT 14.* (Power, Energy), DPT 10.* (Timestamp Time), DPT 11.* (Timestamp Date), DPT 16.* (Text Display), DPT 1.* (Switching, Feedback)

Uwe Müller
Haus-Bus-Systeme.de
(184; 2021.04)

Energy Temp Management with Shelly 1PM

589
This logic group is compatible with: EP
*With the download you accept the Notes on use for logic groups.