Add an action for pzemac to reset the total energy (#1522)

This commit is contained in:
Chris Nussbaum 2022-01-10 04:13:43 -06:00 committed by GitHub
parent f67e563faf
commit 9717d75b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -83,6 +83,19 @@ Configuration variables:
the same UART bus. You will need to set the address of each device manually. Defaults to ``1``.
- **modbus_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the Modbus hub.
.. _pzemac-reset_energy_action:
``pzemac.reset_energy`` Action
******************************
This action resets the total energy value of the pzemac device with the given ID when executed.
.. code-block:: yaml
on_...:
then:
- pzemac.reset_energy: pzemac_1
See Also
--------

View File

@ -381,6 +381,7 @@ All Actions
- :ref:`rf_bridge.learn <rf_bridge-learn_action>`
- :ref:`ds1307.read_time <ds1307-read_time_action>` / :ref:`ds1307.write_time <ds1307-write_time_action>`
- :ref:`cs5460a.restart <cs5460a-restart_action>`
- :ref:`pzemac.reset_energy <pzemac-reset_energy_action>`
- :ref:`number.set <number-set_action>`
.. _config-condition: