Search with Wattson
Home Alone with Hom...
 
Notifications
Clear all

Joining the Renewable Heating Hub forums is completely free and only takes a minute. By registering you’ll be able to ask questions, join discussions, follow topics you’re interested in, bookmark useful threads and receive notifications when someone replies. Non-registered members also do not have access to our AI features. When choosing your username, please note that it cannot be changed later, so we recommend avoiding brand or product names. Before registering, please take a moment to read the Forum Rules & Terms of Use so we can keep the community helpful, respectful and informative for everyone. Thanks for joining!

Home Alone with Home Assistant (previously A Beginner's Guide to ASHP Monitoring)

138 Posts
16 Users
53 Reactions
30.4 K Views
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

@majordennisbloodnok Thanks. It does help.

Am I right in thinking that an automation without a trigger could be written as a script?


House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1943
 

Posted by: @bontwoody

...

Am I right in thinking that an automation without a trigger could be written as a script?

Even closer than you might think.

If you go to Settings, Automations & scenes then you'll see on the top bar that there is an icon for scripts. Effectively, a script is an automation without the triggers and conditions. Alternatively, an automation is a script with conditions. If you ignore the triggers and conditions sections of an automation, the underlying YAML is almost exactly the same except automations have an actions: section with one or more actions beneath it whilst scripts have a sequence: section with one or more actions beneath it.

If you want a button to do something, it can be pointed to a script just as easily as an automation.

 


105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

@majordennisbloodnok 

Unfortunately it didnt work. Ill try and see why

 

image

House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1943
 

OK, let's step back a moment.

When you set up the Huawei Solar integration, did you select "Elevate permissions"?


105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

@majordennisbloodnok I dont actually recall, sorry. Any way to check?


House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1943
 

I think the way of checking is the same as the way of correcting; "reconfiguring" the integration. If you go down to the bottom of the Huawei Solar page here, the last troubleshooting FAQ is on exactly this subject.


105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

@majordennisbloodnok I think it worked, no errors reported, but the sun came out between 10:25 and 10:30 when I set it to run, so it was difficult to be sure 🙂

image

House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

Not so sure now 🙁 No errors but set this for 10:45 to 10:50

image

House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

@majordennisbloodnok Looks like its the target SOC thats causing it

 

Log details (ERROR)

Logger: homeassistant.components.automation.force_discharge_battery
Source: helpers/script.py:2185
Integration: Automation (documentation, issues)
First occurred: 10:25:00 (3 occurrences)
Last logged: 11:10:00
Force Discharge Battery: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['target_soc']


House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1943
 

That would suggest you've got forcible_discharge in your script with a data section containing target_soc rather than either using forcible_discharge with no data section or using forcible_discharge_soc with the data section.

Oh, and that target_soc was only the result of my trawling around the interweb a bit. The documentation is rather light on that front.


This post was modified 1 day ago by Majordennisbloodnok

105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

@majordennisbloodnok Just chatted to GTP and it came back with this 🙂

image

House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
bontwoody
(@bontwoody)
Noble Member Contributor
Joined: 4 years ago
Posts: 1044
 

@majordennisbloodnok

Cracked it. Newer version of the integration required syntax change. Thanks for your help on this 🙂

image
image

 

image

House-3 bed partial stone bungalow, 5kW Samsung Gen 6 ASHP (Self install)
6.9 kWp of PV
10kWh DC coupled battery
Blog: https://thegreeningofrosecottage.weebly.com/
Heatpump Stats: http://heatpumpmonitor.org/system/view?id=60


   
ReplyQuote
Page 11 / 12
Share:

SPONSORS

Join Us!

Installer Finder

Degrees of Separation

Latest Posts

SPONSORS

Click to access the login or register cheese
Protected By
Shield Security PRO