Pessoal,
Tenho um erro que não consigo tirar, alguém pode ajudar?
erro:
Package sonoff setup failed. Component group cannot be merged. Expected a dict.
################################################################################
# TYPE: Package
# FILENAME: sonoff.yaml
# NAME: ??
################################################################################
################################################################################
#### AUTOMATIONS
################################################################################
automation:
- alias: Portão a abrir/fechar
trigger:
- platform: mqtt
topic: stat/PortaoGaragemJS/RESULT
condition:
condition: template
value_template: '{{ trigger.payload_json.POWER == "ON" }}'
action:
service: notify.telegram_joao
data:
message: 'Portão Accionado'
title: '{{ as_timestamp (now()) | timestamp_custom("%d/%b/%Y %T") }}'
- alias: Timer portão Garagem
description: Timer portão Garagem
trigger:
- entity_id: switch.portao_garagem
from: 'off'
platform: state
to: 'on'
condition: []
action:
- delay: 00:00:01
- service: switch.turn_off
entity_id: switch.portao_garagem
- alias: Timer Fechar portão 5 min. depois
description: Timer Fechar portão 5 min. depois
trigger:
- entity_id: switch.portao_garagem
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: switch.garagem_fechada
state: 'off'
action:
- delay: 00:05:00
- entity_id: switch.portao_garagem
service: switch.turn_on
################################################################################
#### GROUP
################################################################################
group:
- portao_garagem:
control: hidden
entities:
- switch.portao_garagem
- sensor.no_de_vezes_portao_abriu
- automation.timer_portao_garagem
- automation.timer_fechar_portao_5_min_depois
icon: "mdi:garage"
name: "Portão Garagem"
view: false
- luzes_natal:
control: hidden
entities:
- switch.luzes_natal
icon: "mdi:string-lights"
name: "Luzes Natal"
view: false
################################################################################
#### BINARY SENSOR TEMPLATES
################################################################################
sensor:
#IP - 192.168.1.210
- platform: mqtt
icon: mdi:garage
name: "Garagem Fechada"
state_topic: "stat/Portao_Garagem/POWER2"
# Numero de Vezes portão Abriu mensal
- platform: history_stats
name: Nº de Vezes portão Abriu
entity_id: switch.portao_garagem
state: 'on'
type: count
start: '{{ now().replace(day=1).replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
#IP - 192.168.1.213
#LUZES NATAL RUA
- platform: mqtt
icon: mdi:garage
name: "Luzes Natal Rua Acesas"
state_topic: "stat/LuzesNatalExterior/POWER1"
################################################################################
## SWITCHES
################################################################################
switch:
#IP - 192.168.1.210
#PORTÃO GARAGEM
- platform: mqtt
icon: mdi:garage
name: "Portão Garagem"
command_topic: "cmnd/PortaoGaragemJS/POWER"
state_topic: "stat/PortaoGaragemJS/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false
#IP - 192.168.1.213
#LUZES NATAL RUA
- platform: mqtt
icon: mdi:garage
name: "Luzes Natal"
command_topic: "cmnd/LuzesNatalExterior/POWER"
state_topic: "stat/LuzesNatalExterior/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: false