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

Create custom binary sensor based on boolean

$
0
0

I am trying to integrate a motion sensor from a Control4 via Webhooks. I have an input boolean that is working great that C4 calls on a change of state of the motion detector. Now I want to be able to use that boolean in a binary sensor. I have read several threads on the matter example and I am not getting anywhere. I tried this based heavily on that thread:

binary_sensor:
  - platform: template
    sensors:
      master_bath_motion:
        value_template: "{{ is_state('input_boolean.master_bath_motion_state', 'on') }}"
        friendly_name: Master Bath Motion Sensor
        device_class: motion

This gives me the error

Invalid config for [binary_sensor]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 13)

Which does me little good as the docs show basically nothing when it comes to configuring binary sensors. (No code or examples? So I am stuck. I am sure it’s something easy, but I am not experienced enough to know what.

In other news, I tried to follow what the one mod was saying about not needing a boolean input and after two days of Google, I don’t understand that at all.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 103579

Trending Articles



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