Per Öberg
cfed1ff799
Add config flow for selecting precision of DS18B20 devices ( #64315 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-03 11:41:59 -08:00
Per Öberg
81000db713
Add support for DS2760 1-Wire TypeK Thermocouple ( #63222 )
...
* Add support for DS2760 1-Wire TypeK Thermocouple
* Add test mockup sensor for DS2760 to tests
* Add support for changing of thermocouple type through override_key
* Fix broken test for DS2760 Thermocouple
* Remove unnecessary test-attribute for DS2760 Thermocouple
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-01-25 13:53:37 +01:00
epenet
24e27290b5
Drop deprecated CONF_NAMES from onewire ( #61094 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:10:19 +01:00
Tim Rightnour
489d85d862
Add Onewire diagnostic and config switches and binary_sensors ( #59309 )
...
* Onewire: Add diagnostic and config switches and binary_sensors
This commit adds diagnostic and config switches and binary_sensors to
the HobbyBoards devices. With these, the user will be able to configure
those devices, without having to run owwrite/owread commands outside
of HA.
* Address review from @epenet
* Add HB_HUB to DEVICE_SUPPORT_OWSERVER
* Device class and entity category enums
* Fixup merge breakage
* Remove duplicate lines
2021-12-07 13:59:43 +01:00
epenet
231d434b76
Use new Platform enum in Onewire ( #60904 )
...
* Use new Platform enum in Onewire
* Use Platform in tests
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:25:22 -08:00
Tim Rightnour
93395f9b68
Add support for PRESSURE_CBAR (centibars) ( #58762 )
...
* Add support for PRESSURE_CBAR (centibars). This is the standard UOM for tensiometers.
While the data could be converted into something like MBAR, and displayed
like that, the correct UOM for this type of sensor is CBAR. Displaying
it as MBAR would be the same as displaying air pressure as feet of Hg, while
technically correct, it's hard to understand when reading.
Adding support for this UOM will fix errors in the UI(statistics) about the unit not
matching a unit of the device_class.
* Add tests for PRESSURE_CBAR
2021-11-10 09:44:05 +01:00
epenet
7e81c6a591
Move onewire device compatibility checks ( #59338 )
...
* Move device compatibility checks to onewirehub
* Add test for dtoverlay warning
* Add tests for unknown device warning
* Move dtoverlay error
* Empty commit to retrigger tests
* Update description
* Patch asyncio.sleep to speed up the tests
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-09 18:30:05 +01:00
epenet
8017a1e141
Adjust onewire device manufacturer ( #58515 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-27 12:02:07 +02:00
epenet
5ccc3c17d9
Use list comprehension in onewire entity descriptions ( #56168 )
...
* Use list comprehension in onewire binary sensors
* Use list comprehension in onewire switches
2021-09-13 13:46:21 +02:00
epenet
ccaf0d5c75
Use EntityDescription - onewire ( #55003 )
2021-08-24 10:37:59 +02:00
Marc Mueller
074d762664
Rename and reorganize electric unit constants ( #53243 )
2021-07-20 20:06:23 +02:00
epenet
d6c99a3db9
Enable strict type checks for onewire ( #50422 )
2021-05-11 17:28:17 +02:00
epenet
5dd59415a8
Drop OWFS support in onewire ( #50121 )
2021-05-05 21:14:20 +02:00
Quentame
198ecb0945
Uniformize platform setup ( #47101 )
...
* A platform is not a component
* Fix dynalite
* SUPPORTED_PLATFORMS --> PLATFORMS
* In tests
* In tests 2
* Fix SmartThings
* Fix ZHA test
* Fix Z-Wave
* Revert Z-Wave
* Use PLATFORMS const in ambient_station
* Fix ihc comment
2021-03-02 21:43:59 +01:00
epenet
7c397a02b7
Add onewire switches ( #42962 )
...
* Add support for switches
* Fix stale comment
2020-11-08 12:06:41 -06:00
epenet
2b2d7558de
Add binary_sensor platform to onewire integration ( #42832 )
...
* Add binary_sensor platform to onewire integration
* Keep the same name
* Rework tests
* Rework tests
2020-11-07 20:42:20 -06:00
epenet
79b10a8efd
Update definition of onewire device specifications ( #42460 )
...
* Update definition of device specifications
* If set, sensor_name doesn't need to be capitalized
2020-11-03 18:12:01 +01:00
epenet
08342a1e05
Move onewire entity classes to separate module ( #42445 )
2020-10-27 14:34:25 +01:00
epenet
6ef53a2c5d
Add config flow for One wire ( #39321 )
...
* Add support for config_flow
Add support for switches
Add support for binary sensors
* Add config flow strings
* Update .coveragerc
* black-formatting
* fixes for isort and flake
* fixes for pylint
* fixes for isort
* fixes for isort
* fixes for config_flow
* Add devices to Device Registry
* Updated comments
* fixes for flake8
* Updated comments
* Updated comments
* Implement async_unload_entry
* remove binary_sensor and switch implementation (will move to new PR)
* Update .coveragerc
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
* Update .coveragerc
* Review config flow to store the configuration type
* Add config_flow tests
* Move CONF_NAMES to constants
* Fix isort
* Tweak to onewire logger
* Tweak to onewire logger for sensor
* Reset _LOGGER variable
* Normalise header
* Normalise header
* Update to use references in config flow translations
* Improve test coverage
* fixes for isort
* Update async_unload_entry
* Update common strings
* Update imports
* Move connect attempt to executor
* Update common strings
* Remove OWFS from config_flow
* Prevent duplicate config entries
* Fix isort
* Fix flake8
* Fix tests following removal of OWFS implementation
* Fix flake8
* Adjust config from yaml to config-flow, and add ability to specify sysbus directory
* Ajust unique_id for config entries
* Fix test_config_flow
* Fix invalid merge
* Convert yaml to config_entry
* Update sysbus tests
* Tweaks to yaml import process, and add OWFS warning
* Enable migration of OWFS platform config to config_entry
* update the existing corresponding config entry on OWFS conversion
* Remove CONFIG_SCHEMA
* Move data_schema to constants
* Remove log message
* Remove duplicate warning
* Update already_configured to use already_configured_device constant
* Schedule get_entities on the executor
* Update duplicate entry check for OWServer
* Review TryCatch
* Schedule os.path.isdir on the executor
* rename owhost/owport
* Update checks for empty
* Fix incorrect patch
* Move config_flow validation methods to new OneWireHub
* Fix typo and pre-commit
* Cleanup try/else
* patch async_setup/async_setup_entry
* cleanup implicit exit point
* Fix invalid patch
* cleanup implicit exit point
* cleanup implicit exit point
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-10-23 20:57:16 -05:00
epenet
ba789105ee
Add PRESSURE_CBAR to onewire constants ( #41826 )
2020-10-15 19:57:15 +02:00
epenet
843c4e27f3
Update Onewire SysBus integration to use a 3rd party library ( #40943 )
2020-10-09 17:31:05 +02:00
epenet
f886ea9e3d
Move onewire constants to separate file ( #40550 )
...
* Move constants to separate file
* Ignore coverage of const.py
2020-09-27 19:02:20 -05:00