esphome / esphome/feature-requests

Support for 1-wire DS2408(DS2406) binary_sensor and switch

Open
#1,099 6 comments 2 reactions 0 assignees View on GitHub
component: switch Type: One Wire
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

I would like to use communication between 1-wire binary_sensor and switch using DS2408 8-ch or DS2406 2-ch. It can be used in all directions, such as Relay control, status LED control via switch and binary sensor.
https://datasheets.maximintegrated.com/en/ds/DS2408.pdf

**Please describe your use case for this integration and alternatives you've tried:**

The problem is that I only have 3-wire attached to the buttons on the wall. I tried to use ADC 1115 as recommended, but this solution only works when using 3 - 6 buttons (I have 13 of them), above 6 I already have a problem using the "on_multi_click" function and I also have a problem with ADC when using ttp223 touch sensor . With 13 buttons, the voltage difference cannot be perfectly distinguished (fluctuates when the touch sensor is pressed). DALLAS ds2408 would solve this problem.
The ADC can be used with analog buttons. When using the ttp223 touch sensor, there is a high voltage fluctuation, especially for "on_multi_click". This is not very applicable to "on_multi_click", because only 6 buttons worked on 100% from using 13 buttons. If the switch could also be integrated into Dallas, I would be able to send 1-wire status using an LED. When using Dallas, it is possible to push 2 buttons at the same time, which is not possible with ADC.

**Additional context**

The integration of this solution into ESPhome would facilitate work over 1-wire with the used binary sensor and switch, which would probably be appreciated by several users who have few cables or it could also be used for the old 3-wire electrical installation.
![circuit](https://user-images.githubusercontent.com/59432151/105639603-993e9000-5e79-11eb-8852-7fd6de76a066.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the linked DS2408 datasheet and the request's wiring and use-case details. Define what ESPHome support for DS2408/DS2406 should expose as binary sensors and switches, including relay or LED control and simultaneous button presses; done means the requested 1-wire behavior is supported and documented.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.