Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions templates/definition/charger/homeassistant-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ group: switchsockets
requirements:
evcc: ["skiptest"]
description:
en: Home Assistant instances in your network will be auto-discovered and suitable entities (e.g. `switch.*`, `sensor.*`) will be suggested.
de: Home Assistant Instanzen in deinem Netzwerk werden automatisch erkannt und passende Entitäten (z.B. `switch.*`, `sensor.*`) werden vorgeschlagen.
en: Home Assistant instances in your network will be auto-discovered and suitable entities (e.g. `switch.*`, `climate.*`, `input_boolean.*`, `sensor.*`) will be suggested.
de: Home Assistant Instanzen in deinem Netzwerk werden automatisch erkannt und passende Entitäten (z.B. `switch.*`, `climate.*`, `input_boolean.*`, `sensor.*`) werden vorgeschlagen.
auth:
type: homeassistant
params: [uri]
Expand All @@ -27,10 +27,10 @@ params:
deprecated: true
- name: switch
description:
de: Entity ID des schaltbaren Geräts
en: Entity ID of the switch device
service: homeassistant/entities?uri={uri}&domain=switch
example: switch.smartsocket
de: Entity ID des steuerbaren Geräts
en: Entity ID of the controllable device
service: homeassistant/entities?uri={uri}&domain=switch,climate,input_boolean
example: switch.smartsocket, climate.smartheater, input_boolean.smartplug
required: true
- name: power
description:
Expand Down
2 changes: 1 addition & 1 deletion util/homeassistant/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (c *Connection) GetBoolState(entity string) (bool, error) {

state = strings.ToLower(state)
switch state {
case "on", "true", "1", "active", "yes":
case "on", "true", "1", "active", "yes", "heat", "cool", "heat_cool", "auto", "dry", "fan_only", "aux_heat":
return true, nil
case "off", "false", "0", "inactive", "no":
return false, nil
Expand Down
Loading