albertogeniola / meross-homeassistant

Custom component that leverages the Meross IoT library to integrate with Homeassistant
MIT License
729 stars 83 forks source link

mss310 add to Energy Individual Device #277

Closed joelang1699 closed 2 years ago

joelang1699 commented 3 years ago

I've got a few of these mss310 units link into HA which correctly display the W,A,O readouts. I'd like to add these to the energy panel however when I select "Add a Device" in the energy panel, none are displayed. I am missing something here? Screenshot 2021-10-05 013229 Screenshot 2021-10-05 013323

jkpe commented 3 years ago

Add a sensor like this to create a new entity that records energy used which can be used in the Energy Dashboard.

- platform: integration
  source: sensor.meross_energy_plug_1_mss310_power_sensor_w_0
  name: meross_energy_plug_1_energy_spent
  unit_prefix: k
  round: 2

ref: https://www.home-assistant.io/integrations/integration/

joelang1699 commented 3 years ago

Add a sensor like this to create a new entity that records energy used which can be used in the Energy Dashboard.

- platform: integration
  source: sensor.meross_energy_plug_1_mss310_power_sensor_w_0
  name: meross_energy_plug_1_energy_spent
  unit_prefix: k
  round: 2

ref: https://www.home-assistant.io/integrations/integration/

Ah I see, Will this need to be done for each plug?

nchieffo commented 3 years ago

Does this mean the meross integration will never support this and we have to configure it manually?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

johnbozuk commented 1 year ago

Add a sensor like this to create a new entity that records energy used which can be used in the Energy Dashboard.

- platform: integration
  source: sensor.meross_energy_plug_1_mss310_power_sensor_w_0
  name: meross_energy_plug_1_energy_spent
  unit_prefix: k
  round: 2

ref: https://www.home-assistant.io/integrations/integration/

What file would I add this too as I have the same issue, cannot add sensors to energy dashboard, thanks in advance