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

Sensor vs Binary Sensor, Missing Binary Sensor

$
0
0

@Kfox wrote:

I can get the binary sensors to work, but when there is no binary sensor ID and ONLY sensor ID’s my code is not working.
This works.

- alias: Hall Way Light    
  trigger: 
    - platform: state
      entity_id: binary_sensor.aeotec_zwa005_trisensor_sensor_2
      to: 'on'
  action:
   - service: switch.turn_on
     entity_id: switch.ge_unknown_type_4952_id_3130_switch
     
     # OFF
- alias: Turn Hall Way #OFF 1 minutes after last movement
  trigger:
   - platform: state
     entity_id: binary_sensor.aeotec_zwa005_trisensor_sensor_2
     to: 'off'
     for:
      minutes: 1
      
  action:
    service: switch.turn_off
    entity_id: switch.ge_14288_duplex_receptacle_switch, switch.ge_14288_duplex_receptacle_switch_2, 
     switch.ge_unknown_type_4952_id_3130_switch

This does not work

- alias: Bathroom Fan
  trigger:
    - platform: state
      entity_id: sensor.ge_26931_smart_motion_switch_burglar_5 #<- This should be your motion sensor
      to: 'on'
  action:
   - service: switch.turn_on  #or light.turn_off
     entity_id: switch.ge_26931_smart_motion_switch_switch_5
        
                 #OFF
- alias: Bathroom Fan
  trigger:
    - platform: state
      entity_id: sensor.ge_26931_smart_motion_switch_burglar_5 #<- This should be your motion sensor
      to: 'off'
      for:
        minutes: 5
  action:
   - service: switch.turn_off  #or light.turn_off
     entity_id: switch.ge_26931_smart_motion_switch_switch_5 # or light.your_light # <- this should be your light entity_id

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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