First off, I found this project via a comment on HomeBridge. I was having difficulties doing this task with Homebridge as well.
I have a Particle device that I designed and it’s connected to 2 lights in my apartment. Particle has an IFTTT channel that I’ve been using to switch the lights. I did successfully trigger the lights via the IFTTT maker channel using the Home Assist “Call Service” page, but can’t figure out how to save these settings in the configuration.yaml file.
I want to use homebridge-homeassistant so I only need to model the lights in my configuration.yaml. I’ve tried a few things but I’m always getting homeassistant.bootstrap: Invalid platform config for [light]: required key not provided @ data['platform']
errors. I don’t technically need automation triggers or conditions because I don’t think I’ll be using them.
This is my config file now. I’m hoping it can be simplified, but I was trying everything I could find to get it to work.
# create input
input_boolean:
toggle_liquor:
name: Toggle Liquor Lights
initial: off
icon: mdi:lightbulb-outline
# create a device
automation:
- alias: 'Toggle Liquor Lights'
# Toggle the Liqour Light
trigger:
- platform: state
entity_id: group.all_devices
state: 'home'
condition:
- platform: state
entity_id: input_boolean.toggle_liquor
state: 'on'
action:
service: ifttt.trigger
data: {"event": "LiquorLights", "value1": "TOGGLE"}
Any suggestions on how to accomplish this would be greatly appriciated.
Thanks,
Dillon