Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accumulator behavior #10

Open
kajmaj opened this issue Nov 26, 2019 · 2 comments
Open

Accumulator behavior #10

kajmaj opened this issue Nov 26, 2019 · 2 comments

Comments

@kajmaj
Copy link

kajmaj commented Nov 26, 2019

Hello,
I am trying tu use accumulator to count "ON time" of the heater.
It works, but in the weird way:
If I restart hassio, accumulator starts accumulate, does not matter the state of the switch (relay) in the time of hassio restart.
It simply counts in both cases ie. relay is ON or OFF after hassio restart.
If it is OFF I have to manually ON and back to OFF again to stop counting.

Switch configuration:

switch:
  - platform: mqtt
    name: "heater_b"
    command_topic: "cmnd/bathroom/power"
    state_topic: "stat/bathroom/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"

Accumulator config:

  - platform: accumulator     
    name: bathroom_clock
    entity_id: switch.heater_b
    state_on: 'on'
    state_off: 'off'

Is there any way around hot to make it working properly?

@hhaim
Copy link
Owner

hhaim commented Nov 26, 2019

@kajmaj there is probably a bug, I will look into it.
Anyhow, I've started to use InfluxDB + Grafana which is much more flexible to create reports of accumulating see the Wiki how I've configured it

@kajmaj
Copy link
Author

kajmaj commented Nov 26, 2019

This is my next task, but still postponed, furthermore I use MariaDB.
BTW could you provide link to wiki? :)
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants