Hi, Im VERY new to Home Assistant but been using PVOutput for years. I read somewhere recently but can’t remember where that its possible to make a action like turn on a smart switch based on solar production figures or household consumption. What I would like to do is when I’m exporting my surplus production to the grid a signal be sent to turn on a smart switch which I intend having a battery charger plugged into. Can anyone help please.
I’m not a programmer and I’m strugging at the moment with Home Assistant. I’ve managed to get a basic PVOutput display working on it.
- id: device_on_surplus_pv_output
alias: 'Device on Surplus PV output'
trigger:
platform: numeric_state
entity_id: sensor.your_net_energy_sensor
above: 0 # or whatever value of net energy you want
action:
- service: switch.turn_on
entity_id: switch.device_u_want_on
Cheers Tom, are u able to give me any more info on that command. Have you used it?
What type of smart plug do you recommend?
I have a couple of Orvibo B25’s but my system is not seeing them
I have have a few generic plugs with energy monitoring running on the Smartlife app.
Should I be able to get the command working with either of use.
Thanks again for the help
What command?
Depends where in the world you are and how comfortable you are flashing new firmware to a device.
I like these: https://www.kogan.com/au/buy/kogan-smarterhome-smart-plug-with-energy-meter-pack-of-4-kogan/
But they work best if flashed with alternative firmware using Tuya-convert. You should be able to use them with the Home Assistant Tuya application without flashing them but that requires a cloud connection Internet goes down = no control.
I have no experience with the Orvibo B25.
I’m in the UK.
I’ve managed to get a couple of smart switches I already had working with the Tuya app which I’m thrilled about but I cant get the to switch on / off automatically depending on my solar production / household energy consumption.
I’ve tried experimenting with the lines in the config yaml and created another rule with below: instad of above: and tried changing the numeric vaulues but still no success.
Do you know if I can alter the default value that is at the top of the PVOutput list? it currently displays the energy generation, it also shows a few entries without values that I would possibly like to delete all together.
I’m a step further forward now.
I can get the switch to activate automatically but PVOutputs main displayed data is overall generation & I want it be be current household consumption
so
when consumption is 0 (i.e I’m pulling nothing from the grid) the switch turns ON, I’m not sure if this is achieved will it turn back off if consumption rises?
I don’t use PVOoutput so don’t have any experience with it. Have you seen the example in the documentation?
I have been using the PVOutput platform for quite som time without issue. For whatever reason is suddenly stopped working. I installed an App “PV Display” on my mobile phone and I though that I might be over the maximum number of request.
I checked the status with
http://pvoutput.org/service/r2/getstatus.jsp?key=xxxx&sid=zzzz
This give me however a normal reply
20201114,15:10,1219,228,NaN,NaN,0.069,32.2,236.4
I upgraded to the latest HassOS 4.16 to make sure that that was not the issue
I also tested the REST component
- platform: rest
resource: http://pvoutput.org/service/r2/getstatus.jsp?key=xxx&sid=zzzz
name: Current power generated
value_template: '{% set list = value.split( "," ) %} {{ "{0:,}".format(float(list[3])) }}'
unit_of_measurement: Watt
- platform: pvoutput
name: pvoutput
system_id: zzzz
api_key: xxxxx
scan_interval: 200
I keep getting the folowing error
2020-11-16 09:50:43 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://pvoutput.org/service/r2/getstatus.jsp?key=xxxx&sid=zzz failed with [Errno -2] Name does not resolve
What is going wrong here ?