Ludovic BOUÉ

Results 346 comments of Ludovic BOUÉ

I'd like to do something similar to this implementation: [ElectricalSensorManager.cpp#L209C1-L212C90](https://github.com/project-chip/connectedhomeip/blob/1f6aada9885ecf8d6f7ed0a5794c789356745ea1/examples/dishwasher-app/silabs/src/ElectricalSensorManager.cpp#L209C1-L212C90) ```c++ gEPMDelegate->SetPowerMode(kAttributes[updateState].PowerMode); gEPMDelegate->SetVoltage(MakeNullable(kAttributes[updateState].Voltage)); gEPMDelegate->SetActiveCurrent(MakeNullable(kAttributes[updateState].ActiveCurrent)); gEPMDelegate->SetActivePower(MakeNullable(kAttributes[updateState].ActivePower)); ```

Do I have to create Delegate and **Instance** for Electrical Power/Energy Measurement like here [ElectricalSensorManager.cpp#L68-L80](https://github.com/project-chip/connectedhomeip/blob/1f6aada9885ecf8d6f7ed0a5794c789356745ea1/examples/dishwasher-app/silabs/src/ElectricalSensorManager.cpp#L68-L80)? ```c++ /* * @brief Creates a Delegate and Instance for Electrical Power/Energy Measurement and Power...

@JoseAntonioMG Electrical sensor is not supported yet in HomeAssistant, so the sensor data is not displayed. This should work with Home Assistant 2024.10.

@JoseAntonioMG Beta [release-202410](https://rc.home-assistant.io/blog/2024/09/25/release-202410/#matter) is out. You can try a test.

@JoseAntonioMG I have a working example for `solar_power` device type: [app_main.cpp](https://github.com/lboue/esp-matter/blob/9c02643be20c2f0e911b218ae1c9e36261fba258/examples/solar_power/main/app_main.cpp). The values are static, but it works. My case is for `ExportedEnergy` feature and `CumulativeEnergyExported `attribute. ![Image](https://github.com/user-attachments/assets/9fa99ab7-a66f-4063-9ef6-cb10452110ae)

Thank @latonita . The component built correctly.

I noticed a warning: ``` Error: POST:1:1: lint: Constant CONF_ACCEL_X is defined in 3 files. Please move all definitions of the constant to const.py (Uses: esphome/components/mpu6050/sensor.py, esphome/components/mpu6886/sensor.py, esphome/components/msa3xx/sensor.py) ```

Working config for me: ``` msa3xx: model: msa311 address: 0x62 update_interval: 5s on_tap: - then: - logger.log: "Tapped" on_double_tap: - then: - logger.log: "Double Tapped" sensor: - platform: msa3xx acceleration_x:...

Do you think it would be possible to expose the Single/Double taps as press buttons? This would enable an automation to be triggered in HomeAssistant. ``` [08:01:56][W][msa3xx:383]: Activity detected [08:01:56][W][msa3xx:383]:...

I've just tried it and it's great! ![image](https://github.com/esphome/esphome/assets/938089/6747f3d7-6e87-455c-ab70-bbbc51247665) ```yaml [15:55:12][D][sensor:094]: 'Accel Y': Sending state 0.01964 m/s² with 2 decimals of accuracy [15:55:12][D][sensor:094]: 'Accel Z': Sending state 0.85070 m/s² with 2...