migube
(Migube)
January 24, 2021, 3:55pm
1
hi guys
could you add the DS2450 to the 1-wire supported devices please?
owdir /20.FC4D05000000
/20.FC4D05000000/8bit
/20.FC4D05000000/CO2
/20.FC4D05000000/PIO.ALL
/20.FC4D05000000/PIO.A
/20.FC4D05000000/PIO.B
/20.FC4D05000000/PIO.C
/20.FC4D05000000/PIO.D
/20.FC4D05000000/address
/20.FC4D05000000/alarm
/20.FC4D05000000/alias
/20.FC4D05000000/crc8
/20.FC4D05000000/family
/20.FC4D05000000/id
/20.FC4D05000000/latestvolt.ALL
/20.FC4D05000000/latestvolt.A
/20.FC4D05000000/latestvolt.B
/20.FC4D05000000/latestvolt.C
/20.FC4D05000000/latestvolt.D
/20.FC4D05000000/latestvolt2.ALL
/20.FC4D05000000/latestvolt2.A
/20.FC4D05000000/latestvolt2.B
/20.FC4D05000000/latestvolt2.C
/20.FC4D05000000/latestvolt2.D
/20.FC4D05000000/locator
/20.FC4D05000000/memory
/20.FC4D05000000/pages
/20.FC4D05000000/power
/20.FC4D05000000/r_address
/20.FC4D05000000/r_id
/20.FC4D05000000/r_locator
/20.FC4D05000000/set_alarm
/20.FC4D05000000/type
/20.FC4D05000000/volt.ALL
/20.FC4D05000000/volt.A
/20.FC4D05000000/volt.B
/20.FC4D05000000/volt.C
/20.FC4D05000000/volt.D
/20.FC4D05000000/volt2.ALL
/20.FC4D05000000/volt2.A
/20.FC4D05000000/volt2.B
/20.FC4D05000000/volt2.C
/20.FC4D05000000/volt2.D
e.g
owread /20.FC4D05000000/volt.C
0.0596103
Many thanks!
I would like to join this request. It would be great if the integration supported the DS2450.
Hello,
I have created a working extension of the 1-Wire component with the DS2450. It works very well for me and I wanted to make it available to everyone. I have created a pull request for this (Add device family 20 to support DS2450 1-Wire Quad A/D Converter by panzaeron · Pull Request #99160 · home-assistant/core · GitHub ), but I am still missing the test extension. I have created the following in tests/components/onewire/const.py:
"20.111111111111": {
ATTR_INJECT_READS: [
b"DS2450", # read device type
],
Platform.SENSOR: [
{ATTR_INJECT_READS: b" 2.69"},
{ATTR_INJECT_READS: b" 2.15"},
{ATTR_INJECT_READS: b" 0.12"},
{ATTR_INJECT_READS: b" 0.12"},
],
},
When I run the test, I get an error:
FAILED test_binary_sensor.py::test_binary_sensors[20.111111111111] - AssertionError: assert [+ received] == [- snapshot]
FAILED test_sensor.py::test_sensors[20.111111111111] - AssertionError: assert [+ received] == [- snapshot]
FAILED test_switch.py::test_switches[20.111111111111] - AssertionError: assert [+ received] == [- snapshot]
Results (4.08s):
78 passed
3 failed
- tests/components/onewire/test_binary_sensor.py:23 test_binary_sensors[20.111111111111]
- tests/components/onewire/test_sensor.py:27 test_sensors[20.111111111111]
- tests/components/onewire/test_switch.py:30 test_switches[20.111111111111]
Now I’m at a point where I don’t know what to do and hope someone can help me.
1 Like
updor
November 20, 2024, 3:11pm
4
Hi Panzaeron,
I very much would like to use this. Following the pull request you are referencing, the last comment entered is talking about some problems. See:
Add device family 20 to support DS2450 1-Wire Quad A/D Converter → Bad Merge/Commit
Appreciated if you could look into this.
Uwe
tom-ha
January 27, 2025, 9:29am
5
this is pending some time “only” because of testing could not be finalized?
maybe some HA 1-wire experts could help here?
DS2450 is perfect to be used as multi sensor e.g. CO2, Temp, RH capturing device and fully supported by OWFS. Integration in HA would make things much easier avoiding the need of using multiple devices instead. Making DS2450 availabe would support DIY makers to bring own sensors into HA.
@updor , @Panzaeron @migube one way to show interest in this is to vote on top of page.
tom-ha
January 30, 2025, 4:48pm
6
DS2450 support has been added and is expected to show up in 2025.3
home-assistant:dev
← moritzthecat:add-DS2450-to-onewire-integration
> @epenet thanx for support. I know many sensor people will love this PR. what i… s coming next?
It will automatically be included in 2025.3 (the cut for 2025.2 was yesterday)
2 Likes