Skip to content

quick and dirty arduino softswitch using homie-esp8266 that supports on/off or a 'toggle' event.

Notifications You must be signed in to change notification settings

jayaras/esp-soft-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

esp-soft-switch

Wiring

I don't have any diagrams handy but you just need a switch between D0 and Ground and a pullup between D0 and 3.3v.

Known Working on...

Installing

Right now this needs Arduino/esp8266, Homie 2.0 and its web assets on the spif. tl;dr - If anyone actually had interest in a binary they could burn on I would be happy to provide it.

ToDo

Maybe move away from Homie to something that supports HASS's MQTT detection. Unles someone makes a HASS plugin for Homie.

Example of using with HomeAssistant

homeassistant@hass:~/.homeassistant/automations$ cat toggle_fireplace.yaml 
alias: "Toggle Fireplace Status"
trigger:
  - platform: mqtt
    topic: homie/fireplace-soft-switch/switch/toggle
action:
  service: switch.toggle
  data:
    entity_id: switch.fireplace_63

About

quick and dirty arduino softswitch using homie-esp8266 that supports on/off or a 'toggle' event.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages