Well, at the moment I’m concentrated on the data handling. My config now looks like this:
{
"id": "temperature-from-elvsensor",
"name": "Temperature",
"class": "LogWatcher",
"file": "/home/sbe/elv_sensors/current.txt",
"attributes": [
{
"name": "S1t",
"type": "number",
"unit": "°C"
},
{
"name": "S2t",
"type": "number",
"unit": "°C"
},
{
"name": "S3t",
"type": "number",
"unit": "°C"
},
{
"name": "S4t",
"type": "number",
"unit": "°C"
},
{
"name": "S5t",
"type": "number",
"unit": "°C"
},
{
"name": "S6t",
"type": "number",
"unit": "°C"
},
{
"name": "S1h",
"type": "number",
"unit": "%"
},
{
"name": "S2h",
"type": "number",
"unit": "%"
},
{
"name": "S3h",
"type": "number",
"unit": "%"
},
{
"name": "S4h",
"type": "number",
"unit": "%"
},
{
"name": "S5h",
"type": "number",
"unit": "%"
},
{
"name": "S6h",
"type": "number",
"unit": "%"
}
],
"lines": [
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S1t": "$1"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S2t": "$2"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S3t": "$3"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S4t": "$4"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S5t": "$5"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S6t": "$6"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S1h": "$7"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S2h": "$8"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S3h": "$9"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S4h": "$10"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S5h": "$11"
},
{
"match": "N (.+) (.+) (.+) (.+) (.+) (.+) U U (.+) (.+) (.+) (.+) (.+) (.+) U U U U U U U",
"S6h": "$12"
}
]
}
I’m just displaying the data, no special configuration yet. I will separate the data into the rooms, where the sensor resides. Later on (and that’s the main purpose to use pimatic) I want to control my power sockets using the 433MHz sender attached to my pi. The power sockets will control the valve of my floor heating.
So if S1t (liviing room) is above 22°C, close the corrsponding valve by a command to my power socket.
regards
stefan