1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 07:08:20 +00:00

fixed test3.yaml for binary_sensor_map

platform name changed
type: group is Requred now
This commit is contained in:
Michiel van Turnhout 2019-03-21 09:09:05 +01:00
parent 373b4d6886
commit 3c199ac465

View File

@ -96,21 +96,19 @@ sensor:
entity_id: sensor.hello_world entity_id: sensor.hello_world
id: ha_hello_world id: ha_hello_world
#group_value sensor #group_value sensor
- platform: group_value - platform: binary_sensor_map
id: slider_0 id: slider_0
name: 'Slider 1' type: GROUP
channels: name: 'Group 1'
- channel: touchkey0 channels:
value: 0 - channel: touchkey0
- channel: touchkey1 value: 0
value: 10 - channel: touchkey1
- channel: touchkey2 value: 10
value: 20 - channel: touchkey2
- channel: touchkey3 value: 20
value: 30 - channel: touchkey3
- channel: flash_button0 value: 30
value: 80
time: time:
- platform: homeassistant - platform: homeassistant
@ -158,12 +156,6 @@ binary_sensor:
on_press: on_press:
then: then:
- switch.toggle: mpr121_toggle - switch.toggle: mpr121_toggle
#flash button on gpio0
- platform: gpio
pin:
number: D3
inverted: True
id: flash_button0
remote_receiver: remote_receiver:
pin: GPIO12 pin: GPIO12