mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Adding illumination sensor (#14615)
* Adding illumination sensor Adding Illumination sensor of 1wire device DS2438 (DEVICE_SENSOR type 26) according to [OWFS API](http://owfs.org/index.php?page=ds2438) * Correcting typo illumination -> illuminance
This commit is contained in:
parent
6e5c541a00
commit
d53a8c0823
@ -28,7 +28,8 @@ DEVICE_SENSORS = {'10': {'temperature': 'temperature'},
|
||||
'22': {'temperature': 'temperature'},
|
||||
'26': {'temperature': 'temperature',
|
||||
'humidity': 'humidity',
|
||||
'pressure': 'B1-R1-A/pressure'},
|
||||
'pressure': 'B1-R1-A/pressure',
|
||||
'illuminance': 'S3-R1-A/illuminance'},
|
||||
'28': {'temperature': 'temperature'},
|
||||
'3B': {'temperature': 'temperature'},
|
||||
'42': {'temperature': 'temperature'}}
|
||||
@ -37,6 +38,7 @@ SENSOR_TYPES = {
|
||||
'temperature': ['temperature', TEMP_CELSIUS],
|
||||
'humidity': ['humidity', '%'],
|
||||
'pressure': ['pressure', 'mb'],
|
||||
'illuminance': ['illuminance', 'lux'],
|
||||
}
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
|
Loading…
x
Reference in New Issue
Block a user