Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Hue motion Sensor and Alarm

$
0
0

@gautier23 wrote:

Hi guys,

Need your help concerning Hue Motion Sensor and Alarm.

I added in my configuration file a switch in order to turn on/off my Hue Motion Sensor

switch:
    platform: rest
    resource: http://IP/api/KEY/sensors/ID/
    name: 'Hue Motion Sensor Salon'
    method: put
    body_on: '{"config": {"on":true}}'
    body_off: '{"config": {"on":false}}'
    is_on_template: '{{ value_json.config.on == true }}'
    headers:
        Content-Type: application/json

Here my automations.yaml :

`- alias: 'Salon Hue Sensor Turn Off'
  trigger:
    platform: state
    entity_id: switch.hue_motion_sensor_salon
    from: 'on'
    to: 'off'
  action:
    service: telegram_bot.send_message
    data:
      message: 'Salon Hue Sensor Turned off'
      
- alias: 'Salon Hue Sensor Turn On'
  trigger:
    platform: state
    entity_id: switch.hue_motion_sensor_salon
    from: 'off'
    to: 'on'
  action:
    service: telegram_bot.send_message
    data:
          message: 'Salon Hue Sensor Turned on'
`

Now, I would like to put an alarm (https://www.home-assistant.io/integrations/manual) in order to arm or disarm this sensor.
But I’m not sure about the relation between alarm control panel and the automations.yaml

Thanks for your help

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>