Will a Shelly 1PM be suitable as a measurement device?
Sure. In fact, all the latest added Ikea lights were measured with this exact device. And measurements look really good.
Some of these bulb types have a switchable IR security light. I’m guessing the script does not have the facility to test this?
The script will first turn of the light completely to measure the standby power. So this will also account for the IR sensor actively listening. Or am I misunderstanding?
Yes this is a very difficult one. Not only measure script would need to be extended to facilitate this, but the most difficult part is the integration itself.
When the standby power needs to have a different value at night the component must have a way to configure multiple standby values and a timesheet or something like that. But that would only work when it are fixed times. Or we need a way to read the infrared state and base standby power on that, but that’s not available as you indicated.
This would get rather complex and errorprone so I suggest to keep things simple.
Maybe we could somehow calculate the average standby power (for example 8 hours IR on, 16 hour IR off). And use that value as the standby power.
And are you able to measure the light with IR on and off? Maybe the power draw is negligible.
Yes seems there is no way to get the actual infrared state. Also checked the Lifx API docs. Maybe the IR sensor power consumption is negligible, so we could just ignore it. Than it will still be nice to have this LIFX lights in the library.
battery based PIR sensors work a really long time on a single battery (for a year or maybe longer), so I think the energy consumption could be very low.
Happy New Year everyone!
Hi Bram,
is Echo somehow a reserved string? I trying to set up my Echos with Daily Fixed Energy.
Every time I use Echo as a prefix in their names, the sensors are not generated.
- platform: powercalc
name: EchoSleep
daily_fixed_energy:
value: 3.5
unit_of_measurement: W
Also happy new year to you, and best wishes to everyone!
I have tried with your configuration in my development instance, but it’s working fine for me.
Not sure why it doesn’t work on your HA.
Do you already have a sensor with the same name EchoSleep?
Nope. But your question had me checked in Developer Tools → Statistics and it showed that the sensors were created. But the reason why I couldn’t add it to the Energy Dashboard was because I had excluded sensor.echo* from being recorded in the past (don’t know when and why - I can’t remember it).
Sorry to bother you.
Hi, this is not possible and I don’t think I will implement this.
The complete integration is modelled with power in mind. The sensors which powercalc creates have W and kWh units of measurements. Also all internals are named to be power and configuration options as well.
After installing the component, I expected some power and energy sensors to pop up, but I don’t see any. There are a bunch of compatible hue lamps which should be discoverable.
I enabled debug logging, but there are no errors.
I tried 0.13.4 and the latest beta, but with no luck. Any suggestions?
Hi Bram,
Thank you for the quick response and awesome work you have done.
I restarted Home Assistant several times, but the sensors did not show up.
When I enabled auto discovery through configuration.yaml, the sensors appeared.
Before I added this, the configuration only mentioned that the component was loaded in the logs. Now, it shows the sensors it discovered and the state changes.
Could it be that I needed to be more patient and wait 10 minutes before discovery kicked in?
enable_autodiscovery was set to false by default in current and previous powercalc versions. Will be set to true by default in future versions. So that’s why the sensors did not appear.
Is enabled in v0.14.0-beta.1.