Hi al,, i created an helper, gas usage last 5 minits. Idea is that if the gas usage is above X value, then i want to turn on the airco or set the temperature + 0.5 if its on.
But im doubting if my helper is working, because it stays at 0. Someone is in the shower for the last 30 mins, so it should have changed in my opinion; but i still see 0,0.
#Created an helper for Gas Usage Last 5 mins; but does it work?
1 messages · Page 1 of 1 (latest)
How are you getting the data from the meter?
Via the slimmelezer+ on my p1 port.
alias: NewGeenGasGebruikenInDeNacht
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.gasverbruiklaatstevijf5minuten
above: 0.05
enabled: true
- trigger: time
at: "06:01:00"
conditions:
- condition: time
after: "22:30:00"
before: "06:02:00"
enabled: true
actions:
- choose:
- conditions:
- condition: state
entity_id: switch.woonkamer_power
state:
- "on"
- condition: time
after: "22:30:00"
before: "06:00:00"
sequence:
- action: climate.set_temperature
metadata: {}
target:
device_id: 869eb70da9b9f4d3cc944d82c79ffafd
data:
temperature: >-
{{ state_attr('climate.woonkamer', 'temperature') | float + 0.5
}}
- conditions:
- condition: device
type: is_off
device_id: 869eb70da9b9f4d3cc944d82c79ffafd
entity_id: 951dc8db78ef4e7dcd9b55c57058de1a
domain: switch
- condition: device
type: is_off
device_id: 1ad5c2b84e27381da444e6334d4bc672
entity_id: 6058da0897486f2f3d99f5182bb26c06
domain: light
- condition: time
after: "22:30:00"
before: "06:00:00"
sequence:
- action: climate.turn_on
metadata: {}
target:
device_id: 869eb70da9b9f4d3cc944d82c79ffafd
data: {}
- action: climate.set_temperature
metadata: {}
target:
device_id: 869eb70da9b9f4d3cc944d82c79ffafd
data:
temperature: 19.5
hvac_mode: heat
- action: climate.set_fan_mode
metadata: {}
data:
fan_mode: Silence
target:
device_id: 869eb70da9b9f4d3cc944d82c79ffafd
- conditions:
- condition: time
after: "06:00:00"
before: "06:02:00"
- condition: device
type: is_on
device_id: 869eb70da9b9f4d3cc944d82c79ffafd
entity_id: 951dc8db78ef4e7dcd9b55c57058de1a
domain: switch
sequence:
- type: turn_off
device_id: 869eb70da9b9f4d3cc944d82c79ffafd
entity_id: 951dc8db78ef4e7dcd9b55c57058de1a
domain: switch
mode: single
ok, and does the source sensor show the gas consumption you expect?
what i find confusing is that the helper keeps showing 0.0. Min = 0, Mean is 0 and then Max is 0.17 or so.
my guess is that it's not reporting very frequently - if it reports every 10 minutes then you will never have 2 readings within your 5 minute statistics window for it to calculate a change on
and then the one blip when it was non-0 was when it happened to report twice within the window for whatever reason
hm, how do i solve it?
Of is there a better way to solve this, as in another Helper
Well... A bigger window would pick up more reading
maybe configuration changes to the meter or the sensor could make it report more often idk
I think you could use a derivative sensor to get a rate that was a bit more robust
I also just don't really.. Get the point of the automation you're trying to set up
The reason is to keep the gas usage 0. Gas costs money. Power is free, because of my solar panels and the “salderen” in the NL.
How does turning the aircon on if you are using gas cause you to not use gas?
The airco is used for Heating.
If this gets the temp “up” the thermostat doesn’t trigger the cv anymore.
So... Why do you want to trigger off the shower running?
I don’t, that’s why i have the condition after 2230, before 0600.