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

Add reset energy #22

Merged
merged 4 commits into from
Aug 21, 2024
Merged

Add reset energy #22

merged 4 commits into from
Aug 21, 2024

Conversation

tarontop
Copy link
Collaborator

Example entry for config.yaml:

sensor:
 - platform: bl0906
    id: id_bl0906
    update_interval: "${update_interval}"
    frequency:
      name: 'Frequency'
      id: 'Frequency'
    temperature:
      name: 'Temperature'
      id: 'Temperature'
    voltage:
      name: 'Voltage'
      id: 'Voltage'

button:
  - platform: template
    name: Reset Energy
    entity_category: config
    on_press:
      then:
        - globals.set:
            id: id_Energy_1_persist
            value: '0.0'
        - globals.set:
            id: id_Energy_2_persist
            value: '0.0'
        - globals.set:
            id: id_Energy_sum_persist
            value: '0.0'
        - bl0906.reset_energy: id_bl0906

@tarontop tarontop merged commit 3f70a66 into athom-tech:main Aug 21, 2024
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

Successfully merging this pull request may close these issues.

1 participant