Thanks for the suggestion but unfortunately I have no idea how to do that
I suspect its something I could use on another device also, I have a small DIY solar install that at night often shows 1 instead of 0 in the HA dashboard could you possibly also advise on how I can set a rule so 1 always = 0
Thanks lolouk44 I looked up the filter sensor and I’ve set 1 up for my Current Cost Electricity.
I’ve used the settings that were used in the example and it appears to be working OK, I just need to try and understand what the settings mean a bit more and then make some slight adjustments if possible as if I compare filtered & unfiltered sensor outputs side by side they are quite a bit different
Hello,
I just implemented the CurrentCost to HACS.
Does anybody know the correct configuration to separate the 3 CT’s in separate number?
I tried the script from @billybob but I couldn’t get that to work.
Have you tried to create a template sensor? Check the Configuration part.
Unfortunately I don’t know how to dynamically generate sensors based on the data stream I get from the CurrentCost so I’ve crammed everything in the attributes.
No I didn’t try to create a template sensor. My programming knowledge is almost zero.
So that a bit too difficult for me unfortunate.
I got the basics working, but I want to split the 3 CT inputs to separate sensors.
Just follow the instructions on my report it’ll give you code examples to copy from.
Then look at the attributes of your main CurrentCost Sensor to know which one you need to “pull” out into your template sensor…
Hi,
Thanks for your currentCost component. I use it with Currentcost envir with usb cable. The clamp is the one with the 2 d-cell batteries sending rf.
The component works fine however i wonder is it able to produce negative values? Since i have solar panels they sometimes produce more electricity than i use. However currentcost provides power values that are comparable with what the solar panels produce at that time but they are positive values. Did i forget to configure something?
I am not new to electronics and domotica appliances however newbie in home assistant.
It all depends on how things are wired between your solar panels and your house / current cost. Do your panels feed back to the grid and go through the current cost clamp?
If so you could expect negative values but I don’t know whether the reader is capable of reporting negative values, I only report what I receive through the serial port… What does the reader report?
Thanks for your reply,
That is how it is. However the values are presented the right absolute value but positive. I cannot do anything with it then.
I think the currentcost system is not a real AC wattmeter. I will try another system.
regards,
Jan
For my entities I get: This entity ('sensor.currentcost_power') does not have a unique ID, therefore its settings cannot be managed from the UI. See the [documentation](https://www.home-assistant.io/faq/unique_id) for more detail.
I followed the example config (only using appliance 0, and removed the non appliance 0 item from the templates section).
Any idea what I’m doing wrong?
You can’t edit the entity via the front end as you should have added it manually. If you want to change the entity’s name tout need to do it in the configuration.yaml file
Trying now for 3 months. and I’m still not capable of pulling the 3 CT inputs into a seperate sensor.
Maybe somebody already did this? Or can it be implemented in the main code?
Show me what your sensor.current_cost
shows.from the Developer Tools > States menu.
I especially need the list of attributes.
Please also confirm what you mean by CT Inputs.
I’m searching to get Channel 1, 2 and 3 separated as a sensor:
And programming is not my cup of tea.
I can see them in the Dev tools. but I have no idea how to get them as a separate sensor.
I added this in configuration.yaml But it gives me “unavailable”
- sensor:
- name: “CurrentCost Power Channel 1”
unit_of_measurement: ‘W’
state: ‘{{ state_attr(“sensor.current_cost”, “Channel 1”)[:-2] | int }}’
device_class: power
state_class: measurement
- name: “CurrentCost Power Channel 1”
In your sensor definition remove the [:-2]
Damn. Just that! It’s working now! Thanks a lot!
+1 as a thankyou for this. Got solar and a battery installed a few weeks ago and noticed I no longer had any indication of actual house consumption because of feed in back to grid and or battery etc.
Remembered I had at some stage years ago bought an Envi when they first came out to plug into PC and monitor power consumption. Somehow managed to dig it, the sensor and power supply out the packing boxes. Installed the integration last night before I had batteries for the sensor, both temperature and power-use both showed as unavailable. Once I installed batteries and sync’d the sensor up it started working immediately… As easy as that! Now does anyone have a link to additional sensors I can buy that will work with the Envi.
I managed to find a Current Cost IAM a few years ago but I don’t know if they still do them.
I also made my own by getting an additional mini clamp and fitting it inside a junction box. Same principe as in this article
https://www.lolorpi.com/2014/08/owl-appliance-monitor/
I got a second clip on and sync’d it to channel 1… And clipped it onto mains, same as first clip on… Interesting the slight difference. Also the small random spikes which seem to be glitches rather than the kettle or anything… ?
Clips are not wholly accurate, so you should expect some slight differences.
I had the same experience with my clips with odd spikes here and then, that’s why I “upgraded” to Home Assistant Glow which is more accurate and doesn’t have the spikes anymore…