Skip to content

feat(History): show auxiliary data #1608

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

Merged
merged 6 commits into from
Feb 21, 2025

Conversation

pedrolamas
Copy link
Member

@pedrolamas pedrolamas commented Feb 19, 2025

Updates the Job History list so that it has all the available columns, including columns for the auxiliary_data when available

This PR also adds the entry units to the Sensor Card.

Sensors Card

image

Jobs History

image

Columns

image

Test Moonraker config

[mqtt]
address: <server>
username: <username>
password: <password>

[sensor mqtt_powermeter]
type: mqtt
name: Powermeter
parameter_power:
  units=W
parameter_energy:
  units=kWh
history_field_energy_consumption:
  parameter=energy
  desc=Printer energy consumption
  strategy=delta
  units=kWh
  init_tracker=true
  precision=6
  exclude_paused=false
  report_total=true
  report_maximum=true
history_field_average_power:
  parameter=power
  desc=Average power draw
  strategy=average
  units=W
  report_total=false
  report_maximum=true
state_topic: zigbee2mqtt/Living Room Smart Plug
state_response_template:
  {% set notification = payload|fromjson %}
  {set_result("power", notification["power"]|float)}
  {set_result("energy", notification["energy"]|float)}

Resolves #1456

@pedrolamas pedrolamas added the FR - Enhancement New feature or request label Feb 19, 2025
@pedrolamas pedrolamas added this to the 1.32.4 milestone Feb 19, 2025
@pedrolamas pedrolamas merged commit cf8190d into develop Feb 21, 2025
5 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/history-auxiliary-data branch February 21, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR - Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sensors auxilary_datas in history, improve sensors display
1 participant