#Sonoff Plug Toggle from Home Assistant
1 messages · Page 1 of 1 (latest)
What do you mean by "works fine from the MQTT integration"?
And where does it not work?
Sorry yes let me explain if i click either of these it works fine
but if i do either or try to add it in a card like this one (this might be wrong and i could be missunderstanding things)
title: Ηλεκτρική Κουβέρτα
layout: vertical
default_new_timer_duration_mins: "45"
snooze_duration: "0"
auto_dismiss_writable: true
timer_presets:
- 15
- 30
- 45
- 60
- 90
minute_buttons:
- 2
- 5
- 10
grid_options:
rows: 8
columns: 12
entities:
- entity: switch.sonoff_plug
mode: auto
then it does nothing
Also this work fine too
alias: Κουβέρτα Ηλεκτρική
description: ""
triggers:
- trigger: state
entity_id:
- schedule.elektrike_kouberta
conditions: []
actions:
- choose:
- conditions:
- condition: and
conditions:
- condition: state
entity_id: schedule.elektrike_kouberta
state:
- "on"
- condition: state
entity_id: input_boolean.automation_bypass
state:
- "off"
sequence:
- type: turn_on
device_id: bc87bb9c3b969e0ee18c1f62f5c9badc
entity_id: 986fcfaa716df4226a142e419a26bd3b
domain: switch
- conditions:
- condition: state
entity_id: schedule.elektrike_kouberta
state:
- "off"
sequence:
- type: turn_off
device_id: bc87bb9c3b969e0ee18c1f62f5c9badc
entity_id: 986fcfaa716df4226a142e419a26bd3b
domain: switch
mode: single
variables:
_cafe_metadata:
version: 1
nodes:
trigger_1770913449766_0:
x: -345
"y": -45
condition_1770913475647_1:
x: -75
"y": -45
action_1770913550168_2:
x: 255
"y": -30
graph_id: 5bd8cf07-2962-46a7-a241-3a75cb114d65
graph_version: 1
strategy: native
If you can toggle it on the device page in HA, the whole HA integration is just completely fine 🙂
And what you show in your last image is not suppose to change the state. That's the tool to change a state in HA for testing without performing any action. Basically to fake a state in HA for testing.
As for the card, even though it has "simple" in the name, it's not a building nor basic card. And scrolling through the documentation is not meant to work with a switch but with a timer entity.
As fot the automation, what is the idea behind all variables?
Bottom line, if you're new to HA I would suggest to start of simpler. Don't over complicate stuff. And if you're more experienced, you'll have to read more documentation and/or stay away from badly documented stuff. At least there is nothing wrong with the integration of the switch into HA 🙂