Comments (9)
The API v1 has an API key called alw
:
https://github.com/cathiele/homeassistant-goecharger/blob/master/custom_components/goecharger/switch.py#L101
https://github.com/cathiele/goecharger/blob/master/goecharger/goecharger.py#L246-L250
This key isn't available at the API v2 anymore. We have to use frc
(force state) instead:
goecharger/go-eCharger-API-v2#47
I don't want to expose the force state as switch entity (on/off) because the off
state should be sometimes neutral
and sometimes forced off
.
from homeassistant-goecharger-mqtt.
You can do useful things. Just use the select.go_echarger_072246_frc
entity in your automations. ;-) And add some button cards to your dashboard.
from homeassistant-goecharger-mqtt.
I've prepared a new release with some goodies: There are three (per default disabled) new button entities now to enforce the state.
from homeassistant-goecharger-mqtt.
There are some internal automations to start charging (f.e. if the price is low) and to stop charging (if an amount of energy is reached). The force state can be used to override these decision by force on
or force off
. Neutral (0
) means no override.
It's hard to map these three states into one switch. Let's say we call the switch switch.start_charging
. If this switch is turned on the state 2
will be written. Which value should be written if we turn the switch off again? 1
would block all internal automations.
from homeassistant-goecharger-mqtt.
My go-e isn't installed yet. So may be you can answer some easy questions about the handling:
If we provide a button.start_charging
entity similar to the restart
button. Could also be done via a lovelace button card already:
type: button
name: Start charging
show_state: false
tap_action:
action: call-service
service: select.select_option
target:
entity_id: select.go_echarger_072246_frc
data:
option: '2'
The charging starts if you press this button. What do you do if you want to drive away and the charging isn't finished yet?
from homeassistant-goecharger-mqtt.
I think you can always stop charging with the car. On our Zoe you simply need to unlock the plug and it stops charging.
Actually I start and stop the charging in connection with our supplied photovoltaic system.
Even if you provide (or done by the switch component) a switch on=2 and off=1, I think it can always overwrite by the app or by selecting force_state.
This integration provides a switch for allowing charging.
https://github.com/cathiele/homeassistant-goecharger
from homeassistant-goecharger-mqtt.
Iām also stopping the charger on 80% battery via Home Assistant with this switch.
from homeassistant-goecharger-mqtt.
Ok I understand!
I will try to make my one switch based und die force_state.
I think it essential to be able to start/stop the charger via HA, to do useful thinks :-)
from homeassistant-goecharger-mqtt.
The buttons are working great. Thanks a lot!
from homeassistant-goecharger-mqtt.
Related Issues (20)
- Go-e Integration stopped providing entities although provided via MQTT HOT 27
- PV Surplus Charging - what happens when pGrid gets "unavailable"? HOT 4
- pAkku, pGrid, pPv sensors shown as "unavailable" HOT 2
- Error in Homeassistant since update 2024.01 Deprecation of STATE_CLASS_MEASUREMENT and STATE_CLASS_TOTAL_INCREASING HOT 3
- Entities not populating - what are correct settings? HOT 4
- Is it possible to manually set the load balancing priority in HA? HOT 6
- ValueError with `ocu` HOT 1
- All entities-data unavailable, but visible in MQTT-Explorer HOT 3
- Remove required serial number from topic configuration HOT 2
- No credentials for broker connection HOT 3
- Entity sensor.go_echarger_XXXXXX_wh has state class total_increasing, but its state is not strictly increasing HOT 1
- Working with Gemini flex? HOT 2
- Separate current meter needed? HOT 2
- hashtag in password -connection failed HOT 2
- Updating state for sensor.go_echarger_0XXXXXX_nrg_8 took 0.671 seconds HOT 9
- How to stop/start charging HOT 2
- Warnings in HomeAssistant update 2024.5.4 # 0.23.0 HOT 1
- charger connected but no data in HA HOT 3
- Load balancing
- Services not working in current release (0.24.x) HOT 5
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-goecharger-mqtt.