mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Add an action for pzemac to reset the total energy (#1522)
This commit is contained in:
parent
f67e563faf
commit
9717d75b05
@ -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
|
||||
--------
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user