Comments (30)
@EddyK69 Ok, I only implemented in YAML yet. Will have a look if I can also implement for the GUI.
from homeassistant-powercalc.
Added for GUI with #2176
from homeassistant-powercalc.
That's strange it shouldn't try to download the release as it's not actually as release.
Might be a bug in HACS. Pretty sure I was able to install this way in the past.
Don't have time to investigate that further atm. Will do a new release for Powercalc soon.
from homeassistant-powercalc.
@EddyK69 I see, there was actually a problem with the translation keys, causing the labels not correctly rendered.
Will be fixed in next version.
The correct field is this one:
![Screenshot 2024-04-19 at 08 16 05](https://private-user-images.githubusercontent.com/2345875/323850762-2c5d345f-0b1e-4e14-8423-4dce90ec2726.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzU2MzcsIm5iZiI6MTcyMzgzNTMzNywicGF0aCI6Ii8yMzQ1ODc1LzMyMzg1MDc2Mi0yYzVkMzQ1Zi0wYjFlLTRlMTQtODQyMy00ZGNlOTBlYzI3MjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTZUMTkwODU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2QyYWE3NTk5Nzg0N2FlYTBiYmRhNzhlOGMyZjNhZDc4YjAxMGZlNjI0YjA0ZDk4YjliNjZlNDE3NGQ5ZGE3NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Diz5QBl-8GNNcnTBxq36jfMDMXjzdEEo8J94upnEgZg)
from homeassistant-powercalc.
Have good news, because it was a quicky. Should be fixed with #2210
from homeassistant-powercalc.
Have good news, because it was a quicky. Should be fixed with #2210
Quick indeed! Wil try it again soon, thnx!
Will be in next release. not sure when yet. maybe this weekend
from homeassistant-powercalc.
Should be fixed with #2229. According to the unit tests this should fix the issue.
I'll also do some testing on my develop HA instance.
from homeassistant-powercalc.
It's working for me now:
Overview.Home.Assistant.mp4
You can try by editing config/custom_components/powercalc/strategy/playbook.py
and add following to line 95:
Restart HA afterwards.
from homeassistant-powercalc.
I will consider this.
Do you use YAML or GUI?
from homeassistant-powercalc.
Implemented with #2170
I cannot do for OFF
state as this is a special case in Powercalc, and needs fundamental changes on different places.
Will be in next release.
You could test it by installing the master branch with HACS.
from homeassistant-powercalc.
Thnx! That was a quick one! Is use the GUI btw. Will test this asap
from homeassistant-powercalc.
Thnx, but cannot download Master via HACS: get a 404 on
https://github.com/bramstroker/homeassistant-powercalc/releases/download/master/powercalc.zip
from homeassistant-powercalc.
Hi @bramstroker
I tried to download master many times, and it always failed with 404. I think the access right for that folder are restricted to your account. Maybe you can make the path to https://github.com/bramstroker/homeassistant-powercalc/releases/download/master/powercalc.zip
public readable?!
from homeassistant-powercalc.
@erkr Strange you both are having issues. I cannot make that path available as master is not a release, but just the main branch where releases are made from.
A zip file is only build when a new release / version is being issued.
HACS shouldn't try to download powercalc.zip, but rather clone the repository.
Maybe something changed in HACS why this is not working anymore, it was working in the past.
I'll have a look.
from homeassistant-powercalc.
I have found following issue on HACS issue tracker:
hacs/integration#3513
It was working in the past, but apparently it does not work anymore when the integration uses zip releases, which is what powercalc does and is the preferred way.
According to the developer of HACS it's not something which will be fixed in HACS, which is a pitty.
So there it not much I can do unfortunately.
If you want to you could download manually. And replace config/custom_components/powercalc
with the contents of custom_components/powercalc
. It's a littlebit more work, but it's essentially the same as HACS automates.
![Screenshot 2024-04-06 at 19 29 17](https://private-user-images.githubusercontent.com/2345875/320222660-6b95d754-ee02-47e1-a00e-95d7d40c54d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzU2MzcsIm5iZiI6MTcyMzgzNTMzNywicGF0aCI6Ii8yMzQ1ODc1LzMyMDIyMjY2MC02Yjk1ZDc1NC1lZTAyLTQ3ZTEtYTAwZS05NWQ3ZDQwYzU0ZDQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTZUMTkwODU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTdiYTRkNDZkNDYwODVhZDE2NzIzYmI3ZDJhM2I0NjE5OGJlZmE2NDVlMDE4MTU5Yzc4YzIzYzdmNTgwZjE5ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mdYAki7QX-U-FMfFEO40zTfevQ5mfFFcLjBDvax3pNw)
from homeassistant-powercalc.
@bramstroker
Great you found out that it simply doesn't work. I propose to just remove the master from the release list. You currently release so actively, that I can wait for the next one
I recall from another project that a version must be set in the manifest when you copy the files manually
from homeassistant-powercalc.
@bramstroker Great you found out that it simply doesn't work. I propose to just remove the master from the release list. You currently release so actively, that I can wait for the next one
☺️
That not something I can fix in Powercalc, that's also a HACS issue.
When zip_release
is used they should just hide the master
branch from the list.
That's also suggested by other integration developers in the issue link I shared.
hacs/integration#3513 (comment)
I recall from another project that a version must be set in the manifest when you copy the files manually
I'm pretty confident that's not required. You can just overwrite the files manually and restart and it should load the new code.
from homeassistant-powercalc.
Today I'm with family, but I will give it a try tomorrow 👍
from homeassistant-powercalc.
Added for GUI with #2176
@bramstroker I cannot find the settings in the GUI I'm afraid. Where can I find it?
![Schermafbeelding 2024-04-14 om 16 51 56](https://private-user-images.githubusercontent.com/13943630/322282318-75c045e0-cc5b-4e92-8747-983b1a92c4bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzU2MzcsIm5iZiI6MTcyMzgzNTMzNywicGF0aCI6Ii8xMzk0MzYzMC8zMjIyODIzMTgtNzVjMDQ1ZTAtY2M1Yi00ZTkyLTg3NDctOTgzYjFhOTJjNGJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MDg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkZWY2YjdkNGEyYmMwNzUwZmE0MzczYjA1YWM2Zjk2NDczNWEzYjE1NDhjNDhkZTI0ZDlmYjg2OWM2NzA1YzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.45cAA7b1uUqC6bXK34KGUngu760X9ge4lvx-RACLMtM)
![Schermafbeelding 2024-04-14 om 16 52 25](https://private-user-images.githubusercontent.com/13943630/322282329-2473c888-10e1-4755-972e-9b26d6f6a926.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzU2MzcsIm5iZiI6MTcyMzgzNTMzNywicGF0aCI6Ii8xMzk0MzYzMC8zMjIyODIzMjktMjQ3M2M4ODgtMTBlMS00NzU1LTk3MmUtOWIyNmQ2ZjZhOTI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MDg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1YTcyNTcxN2YxODg2NjliNWUzYzAwZGU4NjkyOWMyZjA3MDdjMjA5MDQwMjM4ZWRmYjU5Mzk1MWIzMzkwNDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0uO9irSwXbR_YYRwv8_5oN78ooAhd2FL30yYio21cRo)
from homeassistant-powercalc.
@bramstroker Thnx. Found the hidden field 😄
But unfortunately i cannot get it working the way i thought it should:
I configured a device with a simple on/off state:
And added 2 playbooks in de config/powercalc/playbooks folder:
cat test-on.csv
1,10
2,20
3,30
5,50
10,100
cat test-off.csv
1,100
2,50
3,30
5,20
10,10
The 'On' playbook seems to work, but the 'Off' playbook doesn't. After switching the device to Off, power is set to 0 immediately and after switching it On again, the playbook doesn't seem to start from the
beginning:
Schermopname.2024-04-19.om.18.27.00.mov
I would expect that the playbook start over again after every state-change, right?
from homeassistant-powercalc.
@EddyK69 Did you see one of my first comments after I implemented?
#2160 (comment)
off state cannot be used for playbook.
I will have a quick look if I can find a way to implement without needing to modify too much.
from homeassistant-powercalc.
@EddyK69 Did you see one of my first comments after I implemented? #2160 (comment)
off state cannot be used for playbook.
Oops, missed that :|
from homeassistant-powercalc.
Have good news, because it was a quicky. Should be fixed with #2210
Quick indeed! Wil try it again soon, thnx!
from homeassistant-powercalc.
Still doesn't seem to work unfortunately :(
Schermopname.2024-05-03.om.00.00.35.mov
from homeassistant-powercalc.
@EddyK69 You are sure you are at v1.11.8 now?
Or are you running beta version of powercalc?
from homeassistant-powercalc.
@EddyK69 You are sure you are at v1.11.8 now? Or are you running beta version of powercalc?
@bramstroker Yep, I'm sure.
![Schermafbeelding 2024-05-03 om 11 07 04](https://private-user-images.githubusercontent.com/13943630/327704975-c1d04da0-79be-412c-8eee-7c945cf55ef3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzU2MzcsIm5iZiI6MTcyMzgzNTMzNywicGF0aCI6Ii8xMzk0MzYzMC8zMjc3MDQ5NzUtYzFkMDRkYTAtNzliZS00MTJjLThlZWUtN2M5NDVjZjU1ZWYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MDg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRmMDRmZDU2Y2Q4NmJkODYyODU0MDBhYjg5N2RhYjNkMDIyODliNmQ0YzYzYzEwOGQwNmFkYjI4Mzg2NGQyM2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FivbpgtE1jELfMVX1Ebm_n-_Rbz9tpj6KpE8xdPZ5gM)
It worked once: switching ON started started to increase the power (see below how the playbooks are defined) and switiching OFF started to decrease, only once! After the OFF playbook was finished, i switched ON & OFF and nothing happens. I tried to restart the integration but that did not fix it.
![Schermafbeelding 2024-05-03 om 11 05 56](https://private-user-images.githubusercontent.com/13943630/327704694-52a34b53-cfdc-4f45-8bfc-a4593ca30c57.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzU2MzcsIm5iZiI6MTcyMzgzNTMzNywicGF0aCI6Ii8xMzk0MzYzMC8zMjc3MDQ2OTQtNTJhMzRiNTMtY2ZkYy00ZjQ1LThiZmMtYTQ1OTNjYTMwYzU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MDg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1ZjAxNzkwODZkYmRkYzMxNTE0YzUxMzg0M2FlZTQzNjAzZWJiMzE1NGZhZDRjZTkxMWJmNzM2YmY1ZTk0ZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ywe8WgKTpBKK2gomXyk7qM7S36O9rq1Rvvk1TDECcpM)
cat test-on.csv
1,10
2,20
3,30
5,50
10,100
cat test-off.csv
1,100
2,50
3,30
5,20
10,10
from homeassistant-powercalc.
Ok thanks for the extra information. Will have a look if I can reproduce and fix.
from homeassistant-powercalc.
Ok thanks for the extra information. Will have a look if I can reproduce and fix.
Thnx! Just updated to V1.12.0 and it seems that is now not starting the OFF-playbook anymore :(
from homeassistant-powercalc.
Thanx @bramstroker for the quick fix! Wil try out this weekend
from homeassistant-powercalc.
Yep, works perfectly now! Thanx @bramstroker !
from homeassistant-powercalc.
Related Issues (20)
- Philips Hue Bloom LC001 HOT 6
- JSONDecodeError and not a valid ColorMode Error during startup since v1.12.12 HOT 15
- Error while dispatching HOT 9
- ability to enter power-on consumption for 'Sonof ZBmini01' via the configure GUI HOT 3
- Why is powercalc trying to reach the internet after installation and setup? HOT 9
- Thanks for the contribution, makes sense to add the alias as you also verified the power draw is similar. HOT 2
- cant delete entries on the integration HOT 9
- Energy sensor have mixed kWh or Wh as unit HOT 10
- light_setting.hue = int(hs[0] / 360 * 65535) ~~^^^ TypeError: 'NoneType' object is not subscriptable HOT 4
- Innr outdoor lights
- Adopt powercalc to change in device info HOT 1
- Add IKEA LED2104R3 GU10 bulb
- Support for multiple-outlet smart outlets and smart strips HOT 20
- Energy sum to retrieve untracked energy HOT 2
- Option flow cleanup HOT 1
- More than 130 powercalc light entities per room. Why? HOT 11
- Adding my autodectected TP-Link HS300 results in exception HOT 4
- A sensor grouping power sensors went crazy HOT 5
- Allow edit of disabled PowerCalc entry HOT 1
- Problem with group-type entities HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant-powercalc.