You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have configured some automations for some events on the sensors, if I get alarm states set by the developer tools, the automation works as it is supposed to and the state changes in the alarm control panel, if I set them from the alarm control panel the alarm activates by making a sound (which is not what I configured) and the alarm operates with the default settings of the Xiaomi gateway before the integration which not what I want. Is there a guide, some tips or something to configure the panel to set the correct settings in my gateway?
Below is the automation settings of one of the sensors:
id: 1000001-00000000004
alias: Back Door
trigger:
entity_id: binary_sensor.lumi_158d0002c472e7_door
from: 'on'
platform: state
to: 'off'
condition:
condition: state
entity_id: alarm_control_panel.miio_gateway
state: armed_away
condition: or
conditions:
condition: state
entity_id: alarm_control_panel.miio_gateway
state: armed_home
condition: or
conditions:
condition: state
entity_id: alarm_control_panel.miio_gateway
state: armed_night
action:
data:
message: Back Door Open
service: telegram_bot.send_message
and this is the configuration.yaml section for the gateway:
miio_gateway:
host: 10.10.10.99 # IP of your gateway
port: 54321 # port running miio_client, defaults to 54321
sensors: # sensors that will be available in HA (optional)
- sid: lumi.158d00027cce6a
class: motion # motion sensor
friendly_name: Back Room # display name (optional)
#restore: true
- sid: lumi.158d00027cceb2
class: motion # motion sensor
friendly_name: Fireplace # display name (optional)
#restore: true
- sid: lumi.158d0002c47299
class: door # door sensor
#restore: true # will restore sensor state after HA reboot
friendly_name: Main Door
- sid: lumi.158d0002c472e7
class: door # door sensor
#restore: true # will restore sensor state after HA reboot
friendly_name: Back Door
- sid: lumi.158d0002bfb134
class: button # button
restore: true
And this is the panel configuration in which the only states that work are the ones in the code below, if I change manually the states to eg. armed_away instead or arm_away I get the error of unknown state.
entity: alarm_control_panel.miio_gateway
states:
arm_home
arm_away
arm_night
type: alarm-panel
I'm a complete newbiew and trying very much to learn the logic behind this but I fail to understand why the state is valid for the same entity when set from the developer tools and invalid when configured in this widget.....
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
I have configured some automations for some events on the sensors, if I get alarm states set by the developer tools, the automation works as it is supposed to and the state changes in the alarm control panel, if I set them from the alarm control panel the alarm activates by making a sound (which is not what I configured) and the alarm operates with the default settings of the Xiaomi gateway before the integration which not what I want. Is there a guide, some tips or something to configure the panel to set the correct settings in my gateway?
Below is the automation settings of one of the sensors:
and this is the configuration.yaml section for the gateway:
And this is the panel configuration in which the only states that work are the ones in the code below, if I change manually the states to eg. armed_away instead or arm_away I get the error of unknown state.
I'm a complete newbiew and trying very much to learn the logic behind this but I fail to understand why the state is valid for the same entity when set from the developer tools and invalid when configured in this widget.....
Thank you!
The text was updated successfully, but these errors were encountered: