jonathanadams / esphome-configs

ESPHome Device Configurations Repository - A database of user submitted configurations for a variety of devices which can be flashed to run ESPHome.io firmware.
https://ESPHome-Configs.io
GNU General Public License v3.0
68 stars 96 forks source link

Fix Sonoff 4CH Pro R2 - sensors and triggers #84

Closed h0jeZvgoxFepBQ2C closed 4 years ago

h0jeZvgoxFepBQ2C commented 4 years ago

Doesn't work anymore under key "sensor", but with "binary_sensor". Also included missing trigger, to make the buttons work on the device itself.

jonathanadams commented 4 years ago

@h0jeZvgoxFepBQ2C will you have a look at your labelling.

Can you also split out the optional configs into different code blocks (so a user can literally copy and paste the main block and it will work?)

kamcio2603 commented 4 years ago

Hi, i tested your config, please change GPI010 to GPIO10 (cannot resolve pin name GPI010), second - button R2 not working correctly (no actions /no logs)

jonathanadams commented 4 years ago

@h0jeZvgoxFepBQ2C looks good. thanks for making the amendments.