Sonoff: Unterschied zwischen den Versionen
aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
M68k (Diskussion | Beiträge) (→Sonoff) |
M68k (Diskussion | Beiträge) (yaml section) |
||
Zeile 49: | Zeile 49: | ||
*http://welbenchlightleft.lan Nr.15 | *http://welbenchlightleft.lan Nr.15 | ||
*http://welbenchlightright.lan Nr.16 | *http://welbenchlightright.lan Nr.16 | ||
== Yaml == | |||
Dashboard | |||
<nowiki> | |||
views: | |||
- badges: [] | |||
cards: | |||
- type: glance | |||
show_state: false | |||
entities: | |||
- type: entity | |||
icon: 'mdi:space-invaders' | |||
name: Invaders | |||
show_icon: true | |||
entity: switch.loungeinvaders | |||
show_name: true | |||
- show_name: true | |||
name: Horsie | |||
show_icon: true | |||
entity: switch.loungepony | |||
icon: 'mdi:horseshoe' | |||
- show_name: true | |||
name: Squarelamp | |||
show_icon: true | |||
entity: switch.loungesquarelamp | |||
icon: 'mdi:cube' | |||
- show_name: true | |||
name: Fan | |||
show_icon: true | |||
entity: switch.loungefan | |||
icon: 'mdi:fan' | |||
- type: entity-button | |||
tap-action: | |||
action: none | |||
icon: 'mdi:ghost-off' | |||
name: Metacade | |||
show_icon: true | |||
entity: zone.home | |||
show_name: true | |||
columns: 5 | |||
title: Other | |||
- type: glance | |||
show_state: false | |||
entities: | |||
- tap_action: | |||
action: call-service | |||
service: rest_command.lounge_lights_off | |||
type: entity-button | |||
icon: 'mdi:brightness-1' | |||
name: 'Off' | |||
show_icon: true | |||
entity: zone.home | |||
show_name: true | |||
- tap_action: | |||
action: call-service | |||
service: rest_command.lounge_lights_super_chillig | |||
type: entity-button | |||
icon: 'mdi:brightness-2' | |||
name: Super Chillig | |||
show_icon: true | |||
entity: zone.home | |||
show_name: true | |||
- tap_action: | |||
action: call-service | |||
service: rest_command.lounge_lights_chillig | |||
type: entity-button | |||
icon: 'mdi:brightness-4' | |||
name: Chillig | |||
show_icon: true | |||
entity: zone.home | |||
show_name: true | |||
- tap_action: | |||
action: call-service | |||
service: rest_command.lounge_lights_normal | |||
type: entity-button | |||
icon: 'mdi:brightness-5' | |||
name: Normal | |||
show_icon: true | |||
entity: zone.home | |||
show_name: true | |||
- tap_action: | |||
action: call-service | |||
service: rest_command.lounge_lights_bright | |||
type: entity-button | |||
icon: 'mdi:sunglasses' | |||
name: Bright | |||
show_icon: true | |||
entity: zone.home | |||
show_name: true | |||
columns: 5 | |||
title: Ceiling | |||
- type: iframe | |||
title: Color Picker | |||
url: 'http://10.20.30.90:8083' | |||
aspect_ratio: 41% | |||
- type: shopping-list | |||
title: TODO | |||
panel: false | |||
title: Lounge | |||
- badges: [] | |||
cards: | |||
- type: iframe | |||
url: 'http://10.20.30.40' | |||
aspect_ratio: 100% | |||
panel: true | |||
title: ScreenInvader | |||
- badges: [] | |||
cards: | |||
- type: iframe | |||
url: 'http://10.20.30.64' | |||
aspect_ratio: 100% | |||
panel: true | |||
title: Öffimonitor | |||
- badges: [] | |||
cards: | |||
- type: iframe | |||
url: 'https://metalab.at/cellardoor/' | |||
aspect_ratio: 100% | |||
panel: true | |||
title: Calendar | |||
- badges: [] | |||
cards: | |||
- type: iframe | |||
url: 'http://10.20.30.90' | |||
aspect_ratio: 100% | |||
panel: true | |||
title: Slackomatic | |||
- badges: [] | |||
cards: | |||
- type: iframe | |||
url: 'http://10.20.30.90:8080/advanced.html' | |||
aspect_ratio: 100% | |||
panel: true | |||
title: OLDSKOOL Slackomatic | |||
- badges: [] | |||
cards: [] | |||
title: World | |||
- badges: [] | |||
cards: | |||
- type: entities | |||
entities: | |||
- entity: switch.bibliothekalarm | |||
icon: 'mdi:alarm-light-outline' | |||
- entity: switch.einganglicht | |||
icon: 'mdi:ceiling-light' | |||
- entity: switch.eingangstrahler | |||
icon: 'mdi:spotlight-beam' | |||
- entity: switch.blinkentunnel | |||
icon: 'mdi:looks' | |||
- entity: switch.hauptraumalarm | |||
icon: 'mdi:alarm-light-outline' | |||
- entity: switch.hauptraumeins | |||
- entity: switch.hauptraumzwei | |||
- entity: switch.welalarm | |||
icon: 'mdi:alarm-light-outline' | |||
- entity: switch.welbenchlightleft | |||
- entity: switch.welbenchlightright | |||
- entity: switch.kassomat | |||
icon: 'mdi:cash-register' | |||
- entity: switch.metanudel | |||
icon: 'mdi:bowl' | |||
- entity: switch.loungesquarelamp | |||
icon: 'mdi:cube' | |||
- entity: switch.loungeinvaders | |||
icon: 'mdi:space-invaders' | |||
- entity: switch.loungepony | |||
icon: 'mdi:horseshoe' | |||
- entity: switch.loungefan | |||
icon: 'mdi:fan' | |||
- tap_action: | |||
action: call-service | |||
service: script.1557007983755 | |||
type: entity-button | |||
icon: 'mdi:power' | |||
name: shutdown all the things | |||
show_icon: true | |||
hold_action: | |||
action: more-info | |||
entity: zone.home | |||
show_name: true | |||
- tap_action: | |||
action: call-service | |||
service: script.1557010242860 | |||
type: entity-button | |||
icon: 'mdi:power' | |||
name: turn on all the things | |||
show_icon: true | |||
hold_action: | |||
action: more-info | |||
entity: zone.home | |||
show_name: true | |||
- tap_action: | |||
action: call-service | |||
service: shell_command.lounge_light_off | |||
type: entity-button | |||
name: lounge light off | |||
show_icon: true | |||
hold_action: | |||
action: more-info | |||
entity: zone.home | |||
show_name: true | |||
- tap_action: | |||
action: call-service | |||
service: shell_command.lounge_light_on | |||
type: entity-button | |||
name: lounge light on | |||
show_icon: true | |||
hold_action: | |||
action: more-info | |||
entity: zone.home | |||
show_name: true | |||
panel: false | |||
title: sonoff switches | |||
title: Home | |||
</nowiki> |
Version vom 4. Mai 2019, 23:47 Uhr
Sonoff
https://community.home-assistant.io/t/mqtt-how-to-retain-sonoff-switch-setting-across-restarts-of-ha/21504/51 https://github.com/arendst/Sonoff-Tasmota/wiki/PowerOnState-Configuration#side-effects-with-using-mqtt-messages
curl http://hauptraumalarm/cm?cmnd=PowerRetain%201 curl http://welalarm/cm?cmnd=PowerRetain%201 curl http://bibliothekalarm/cm?cmnd=PowerRetain%201 curl http://loungeinvaders/cm?cmnd=PowerRetain%201 curl http://loungepony/cm?cmnd=PowerRetain%201 curl http://loungesquarelamp/cm?cmnd=PowerRetain%201 curl http://loungefan/cm?cmnd=PowerRetain%201 curl http://eingangstrahler/cm?cmnd=PowerRetain%201 curl http://einganglicht/cm?cmnd=PowerRetain%201 curl http://blinkentunnel/cm?cmnd=PowerRetain%201 curl http://hauptraumeins/cm?cmnd=PowerRetain%201 curl http://hauptraumzwei/cm?cmnd=PowerRetain%201 curl http://kassomat/cm?cmnd=PowerRetain%201 curl http://metanudel/cm?cmnd=PowerRetain%201 curl http://welbenchlightleft/cm?cmnd=PowerRetain%201 curl http://welbenchlightright/cm?cmnd=PowerRetain%201
List of all sonoff modules currently in use
- http://loungeinvaders.lan Nr.4
- http://loungepony.lan Nr.5
- http://loungesquarelamp.lan Nr.6
- http://loungefan.lan Nr.7
- http://hauptraumeins.lan Nr.11
- http://hauptraumzwei.lan Nr.12
- http://kassomat.lan Nr.13
- http://metanudel.lan Nr.14
Yaml
Dashboard
views: - badges: [] cards: - type: glance show_state: false entities: - type: entity icon: 'mdi:space-invaders' name: Invaders show_icon: true entity: switch.loungeinvaders show_name: true - show_name: true name: Horsie show_icon: true entity: switch.loungepony icon: 'mdi:horseshoe' - show_name: true name: Squarelamp show_icon: true entity: switch.loungesquarelamp icon: 'mdi:cube' - show_name: true name: Fan show_icon: true entity: switch.loungefan icon: 'mdi:fan' - type: entity-button tap-action: action: none icon: 'mdi:ghost-off' name: Metacade show_icon: true entity: zone.home show_name: true columns: 5 title: Other - type: glance show_state: false entities: - tap_action: action: call-service service: rest_command.lounge_lights_off type: entity-button icon: 'mdi:brightness-1' name: 'Off' show_icon: true entity: zone.home show_name: true - tap_action: action: call-service service: rest_command.lounge_lights_super_chillig type: entity-button icon: 'mdi:brightness-2' name: Super Chillig show_icon: true entity: zone.home show_name: true - tap_action: action: call-service service: rest_command.lounge_lights_chillig type: entity-button icon: 'mdi:brightness-4' name: Chillig show_icon: true entity: zone.home show_name: true - tap_action: action: call-service service: rest_command.lounge_lights_normal type: entity-button icon: 'mdi:brightness-5' name: Normal show_icon: true entity: zone.home show_name: true - tap_action: action: call-service service: rest_command.lounge_lights_bright type: entity-button icon: 'mdi:sunglasses' name: Bright show_icon: true entity: zone.home show_name: true columns: 5 title: Ceiling - type: iframe title: Color Picker url: 'http://10.20.30.90:8083' aspect_ratio: 41% - type: shopping-list title: TODO panel: false title: Lounge - badges: [] cards: - type: iframe url: 'http://10.20.30.40' aspect_ratio: 100% panel: true title: ScreenInvader - badges: [] cards: - type: iframe url: 'http://10.20.30.64' aspect_ratio: 100% panel: true title: Öffimonitor - badges: [] cards: - type: iframe url: 'https://metalab.at/cellardoor/' aspect_ratio: 100% panel: true title: Calendar - badges: [] cards: - type: iframe url: 'http://10.20.30.90' aspect_ratio: 100% panel: true title: Slackomatic - badges: [] cards: - type: iframe url: 'http://10.20.30.90:8080/advanced.html' aspect_ratio: 100% panel: true title: OLDSKOOL Slackomatic - badges: [] cards: [] title: World - badges: [] cards: - type: entities entities: - entity: switch.bibliothekalarm icon: 'mdi:alarm-light-outline' - entity: switch.einganglicht icon: 'mdi:ceiling-light' - entity: switch.eingangstrahler icon: 'mdi:spotlight-beam' - entity: switch.blinkentunnel icon: 'mdi:looks' - entity: switch.hauptraumalarm icon: 'mdi:alarm-light-outline' - entity: switch.hauptraumeins - entity: switch.hauptraumzwei - entity: switch.welalarm icon: 'mdi:alarm-light-outline' - entity: switch.welbenchlightleft - entity: switch.welbenchlightright - entity: switch.kassomat icon: 'mdi:cash-register' - entity: switch.metanudel icon: 'mdi:bowl' - entity: switch.loungesquarelamp icon: 'mdi:cube' - entity: switch.loungeinvaders icon: 'mdi:space-invaders' - entity: switch.loungepony icon: 'mdi:horseshoe' - entity: switch.loungefan icon: 'mdi:fan' - tap_action: action: call-service service: script.1557007983755 type: entity-button icon: 'mdi:power' name: shutdown all the things show_icon: true hold_action: action: more-info entity: zone.home show_name: true - tap_action: action: call-service service: script.1557010242860 type: entity-button icon: 'mdi:power' name: turn on all the things show_icon: true hold_action: action: more-info entity: zone.home show_name: true - tap_action: action: call-service service: shell_command.lounge_light_off type: entity-button name: lounge light off show_icon: true hold_action: action: more-info entity: zone.home show_name: true - tap_action: action: call-service service: shell_command.lounge_light_on type: entity-button name: lounge light on show_icon: true hold_action: action: more-info entity: zone.home show_name: true panel: false title: sonoff switches title: Home