Check Room Occupancy - Bedroom

View All Rules

alias: Check Room Occupancy - Bedroom
trigger:
- platform: state
  entity_id: binary_sensor.motion_ff_bedroom
- platform: state
  entity_id: sensor.family_family_state_raw
- platform: state
  entity_id: sensor.family_kareen_state
- platform: state
  entity_id: sensor.family_stuart_state
- platform: state
  entity_id: sensor.media_ff_bedroom_fire_tv
- platform: state
  entity_id: sensor.media_ff_bedroom_plex_audio
- platform: state
  entity_id: sensor.media_ff_bedroom_plex_alexa
- platform: state
  entity_id: sensor.media_ff_bedroom_plex_fire
- platform: state
  entity_id: switch.ff_bedroom_tv_switch
- platform: state
  entity_id: sensor.family_stuart_loc_room
- platform: state
  entity_id: sensor.family_kareen_loc_room
action:
  - service: mqtt.publish
    data:
      topic: cmd/nodered/occcheck/bedroom
      payload: "true"
      qos: 2
      retain: false

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.