diff --git a/tests/data/devices/adeo-sin-4-fp-21-equ.json b/tests/data/devices/adeo-sin-4-fp-21-equ.json index 81c8e8c2f..acc8dca9d 100644 --- a/tests/data/devices/adeo-sin-4-fp-21-equ.json +++ b/tests/data/devices/adeo-sin-4-fp-21-equ.json @@ -332,16 +332,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -365,12 +365,12 @@ "group_id": null, "enum": "NodOnPilotWireMode", "options": [ - "Off", - "Comfort", - "Eco", - "FrostProtection", - "ComfortMinus1", - "ComfortMinus2" + "off", + "comfort", + "eco", + "frostprotection", + "comfortminus1", + "comfortminus2" ] }, "state": { diff --git a/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json b/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json index b9bcbc9ca..6aeddc80e 100644 --- a/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json +++ b/tests/data/devices/adurosmart-eria-ad-rgbw3001-0x00000001.json @@ -616,16 +616,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/aeotec-zga004.json b/tests/data/devices/aeotec-zga004.json index 5a3adbf94..62024564f 100644 --- a/tests/data/devices/aeotec-zga004.json +++ b/tests/data/devices/aeotec-zga004.json @@ -758,7 +758,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } }, { @@ -786,7 +786,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Shutter" + "state": "shutter" } } ], diff --git a/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json b/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json index 4154ef790..e0d34581a 100644 --- a/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json +++ b/tests/data/devices/aqara-lumi-light-acn132-0x00001a1a.json @@ -666,8 +666,8 @@ "group_id": null, "enum": "LedStripT1Audio", "options": [ - "Off", - "On" + "off", + "on" ] }, "state": { @@ -697,10 +697,10 @@ "group_id": null, "enum": "LedStripT1AudioEffect", "options": [ - "Random", - "Blink", - "Rainbow", - "Wave" + "random", + "blink", + "rainbow", + "wave" ] }, "state": { @@ -730,9 +730,9 @@ "group_id": null, "enum": "LedStripT1AudioSensitivity", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { @@ -762,10 +762,10 @@ "group_id": null, "enum": "LedStripT1PowerOnStateMode", "options": [ - "On", - "Previous", - "Off", - "Toggle" + "on", + "previous", + "off", + "toggle" ] }, "state": { @@ -795,14 +795,14 @@ "group_id": null, "enum": "LedStripT1Preset", "options": [ - "Breathe", - "Rainbow", - "Sweep", - "Flashing", - "Strobe", - "ReversedRainbow", - "Colorful", - "Scan" + "breathe", + "rainbow", + "sweep", + "flashing", + "strobe", + "reversedrainbow", + "colorful", + "scan" ] }, "state": { diff --git a/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json b/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json index f1e28f60b..50d4f3bd4 100644 --- a/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json +++ b/tests/data/devices/aqara-lumi-motion-ac01-0x00000035.json @@ -303,15 +303,15 @@ "group_id": null, "enum": "AqaraApproachDistances", "options": [ - "Far", - "Medium", - "Near" + "far", + "medium", + "near" ] }, "state": { "class_name": "AqaraApproachDistance", "available": true, - "state": "Far" + "state": "far" } }, { @@ -335,14 +335,14 @@ "group_id": null, "enum": "AqaraMonitoringModess", "options": [ - "Undirected", - "Left Right" + "undirected", + "left_right" ] }, "state": { "class_name": "AqaraMonitoringMode", "available": true, - "state": "Left Right" + "state": "left_right" } }, { @@ -366,15 +366,15 @@ "group_id": null, "enum": "AqaraMotionSensitivities", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "AqaraMotionSensitivity", "available": true, - "state": "High" + "state": "high" } } ], diff --git a/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json b/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json index 664a3382e..31d525f7e 100644 --- a/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json +++ b/tests/data/devices/aqara-lumi-sensor-occupy-agl1-0x0000001a.json @@ -360,9 +360,9 @@ "group_id": null, "enum": "AqaraMotionSensitivity", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { diff --git a/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json b/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json index a11774c1e..b88fd42ec 100644 --- a/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json +++ b/tests/data/devices/aqara-lumi-switch-acn047-0x0000001c.json @@ -845,14 +845,14 @@ "group_id": null, "enum": "DecoupledMode", "options": [ - "Decoupled", - "ControlRelay" + "decoupled", + "controlrelay" ] }, "state": { "class_name": "AqaraT2RelayDecoupledMode", "available": true, - "state": "ControlRelay" + "state": "controlrelay" } }, { @@ -876,16 +876,16 @@ "group_id": null, "enum": "StartupOnOff", "options": [ - "On", - "Previous", - "Off", - "Toggle" + "on", + "previous", + "off", + "toggle" ] }, "state": { "class_name": "AqaraT2RelayStartupOnOff", "available": true, - "state": "Previous" + "state": "previous" } }, { @@ -909,15 +909,15 @@ "group_id": null, "enum": "SwitchMode", "options": [ - "Power", - "Pulse", - "Dry" + "power", + "pulse", + "dry" ] }, "state": { "class_name": "AqaraT2RelaySwitchMode", "available": true, - "state": "Power" + "state": "power" } }, { @@ -941,15 +941,15 @@ "group_id": null, "enum": "SwitchType", "options": [ - "Toggle", - "Momentary", - "NoSwitch" + "toggle", + "momentary", + "noswitch" ] }, "state": { "class_name": "AqaraT2RelaySwitchType", "available": true, - "state": "Toggle" + "state": "toggle" } }, { @@ -973,14 +973,14 @@ "group_id": null, "enum": "DecoupledMode", "options": [ - "Decoupled", - "ControlRelay" + "decoupled", + "controlrelay" ] }, "state": { "class_name": "AqaraT2RelayDecoupledMode", "available": true, - "state": "ControlRelay" + "state": "controlrelay" } } ], diff --git a/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json b/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json index 96170d567..48b71499a 100644 --- a/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json +++ b/tests/data/devices/aqara-lumi-switch-aeu003-0x00000e14.json @@ -887,7 +887,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } }, { diff --git a/tests/data/devices/awox-esmlfzm-w6-dimm.json b/tests/data/devices/awox-esmlfzm-w6-dimm.json index dda552e81..001de1b30 100644 --- a/tests/data/devices/awox-esmlfzm-w6-dimm.json +++ b/tests/data/devices/awox-esmlfzm-w6-dimm.json @@ -523,16 +523,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json index ee2058d26..ab5635733 100644 --- a/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json +++ b/tests/data/devices/bega-gantenbrink-leuchten-kg-smart-dimmable-light-0x00990be9.json @@ -734,16 +734,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } }, { @@ -767,14 +767,14 @@ "group_id": null, "enum": "BegaColorTemperatureChannel", "options": [ - "Warm white", - "Cool white" + "warm_white", + "cool_white" ] }, "state": { "class_name": "BegaColorTemperatureChannelSelect", "available": true, - "state": "Warm white" + "state": "warm_white" } } ], diff --git a/tests/data/devices/bitron-video-902010-24a.json b/tests/data/devices/bitron-video-902010-24a.json index 16b7ac90d..39b00e8e7 100644 --- a/tests/data/devices/bitron-video-902010-24a.json +++ b/tests/data/devices/bitron-video-902010-24a.json @@ -259,10 +259,10 @@ "group_id": null, "enum": "SirenLevel", "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" + "low_level_sound", + "medium_level_sound", + "high_level_sound", + "very_high_level_sound" ] }, "state": { @@ -323,10 +323,10 @@ "group_id": null, "enum": "StrobeLevel", "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" + "low_level_strobe", + "medium_level_strobe", + "high_level_strobe", + "very_high_level_strobe" ] }, "state": { @@ -356,13 +356,13 @@ "group_id": null, "enum": "WarningMode", "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" + "stop", + "burglar", + "fire", + "emergency", + "police_panic", + "fire_panic", + "emergency_panic" ] }, "state": { diff --git a/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json b/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json index 18191dd34..2db2a93c4 100644 --- a/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json +++ b/tests/data/devices/bosch-rbsh-mms-zb-eu-0x11136760.json @@ -961,9 +961,9 @@ "group_id": null, "enum": "BoschDeviceMode", "options": [ - "Disabled", - "Cover", - "Light" + "disabled", + "cover", + "light" ] }, "state": { @@ -993,10 +993,10 @@ "group_id": null, "enum": "BoschSwitchType", "options": [ - "Button", - "Button key change", - "Rocker switch", - "Rocker switch key change" + "button", + "button_key_change", + "rocker_switch", + "rocker_switch_key_change" ] }, "state": { @@ -1026,16 +1026,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } }, { @@ -1059,16 +1059,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], @@ -1226,7 +1226,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Tilt_blind_tilt_and_lift" + "state": "tilt_blind_tilt_and_lift" } }, { diff --git a/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json b/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json index 69c057474..e9d72e530 100644 --- a/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json +++ b/tests/data/devices/bosch-rbsh-rth0-bat-zb-eu-0x02086a30.json @@ -738,17 +738,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } }, { @@ -772,8 +772,8 @@ "group_id": null, "enum": "BoschActuatorType", "options": [ - "NormallyClosed", - "NormallyOpen" + "normallyclosed", + "normallyopen" ] }, "state": { @@ -803,10 +803,10 @@ "group_id": null, "enum": "BoschHeaterType", "options": [ - "UnderfloorHeating", - "Boiler", - "Radiator", - "CentralHeating" + "underfloorheating", + "boiler", + "radiator", + "centralheating" ] }, "state": { @@ -836,9 +836,9 @@ "group_id": null, "enum": "BoschOperatingMode", "options": [ - "Schedule", - "Manual", - "Pause" + "schedule", + "manual", + "pause" ] }, "state": { @@ -868,9 +868,9 @@ "group_id": null, "enum": "BoschSensorConnection", "options": [ - "NotUsed", - "WithoutRegulation", - "WithRegulation" + "notused", + "withoutregulation", + "withregulation" ] }, "state": { @@ -900,8 +900,8 @@ "group_id": null, "enum": "TemperatureDisplayMode", "options": [ - "Metric", - "Imperial" + "metric", + "imperial" ] }, "state": { @@ -931,9 +931,9 @@ "group_id": null, "enum": "BoschValveStatusLed", "options": [ - "Off", - "Normal", - "On" + "off", + "normal", + "on" ] }, "state": { @@ -1115,7 +1115,7 @@ "state": { "class_name": "SetpointChangeSource", "available": true, - "state": "Manual" + "state": "manual" } }, { diff --git a/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json b/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json index 0e9f05416..d89c440b8 100644 --- a/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json +++ b/tests/data/devices/bosch-rbsh-rth0-zb-eu-0x03036a30.json @@ -864,17 +864,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } }, { @@ -898,8 +898,8 @@ "group_id": null, "enum": "BoschActuatorType", "options": [ - "NormallyClosed", - "NormallyOpen" + "normallyclosed", + "normallyopen" ] }, "state": { @@ -929,10 +929,10 @@ "group_id": null, "enum": "BoschHeaterType", "options": [ - "UnderfloorHeating", - "Boiler", - "Radiator", - "CentralHeating" + "underfloorheating", + "boiler", + "radiator", + "centralheating" ] }, "state": { @@ -962,15 +962,15 @@ "group_id": null, "enum": "BoschOperatingMode", "options": [ - "Schedule", - "Manual", - "Pause" + "schedule", + "manual", + "pause" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Manual" + "state": "manual" } }, { @@ -994,9 +994,9 @@ "group_id": null, "enum": "BoschSensorConnection", "options": [ - "NotUsed", - "WithoutRegulation", - "WithRegulation" + "notused", + "withoutregulation", + "withregulation" ] }, "state": { @@ -1026,14 +1026,14 @@ "group_id": null, "enum": "TemperatureDisplayMode", "options": [ - "Metric", - "Imperial" + "metric", + "imperial" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Metric" + "state": "metric" } }, { @@ -1057,9 +1057,9 @@ "group_id": null, "enum": "BoschValveStatusLed", "options": [ - "Off", - "Normal", - "On" + "off", + "normal", + "on" ] }, "state": { @@ -1235,7 +1235,7 @@ "state": { "class_name": "SetpointChangeSource", "available": true, - "state": "External" + "state": "external" } }, { diff --git a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json index 1fadc3bb9..fe96f3233 100644 --- a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json +++ b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x32051514.json @@ -709,14 +709,14 @@ "group_id": null, "enum": "BoschControlSequenceOfOperation", "options": [ - "Cooling", - "Heating" + "cooling", + "heating" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Heating" + "state": "heating" } }, { @@ -740,14 +740,14 @@ "group_id": null, "enum": "BoschDisplayOrientation", "options": [ - "Normal", - "Flipped" + "normal", + "flipped" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Normal" + "state": "normal" } }, { @@ -771,14 +771,14 @@ "group_id": null, "enum": "BoschDisplayedTemperature", "options": [ - "Target", - "Measured" + "target", + "measured" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Target" + "state": "target" } } ], @@ -956,7 +956,7 @@ "state": { "class_name": "SetpointChangeSource", "available": true, - "state": "External" + "state": "external" } }, { @@ -1012,7 +1012,7 @@ "state": { "class_name": "EnumSensor", "available": true, - "state": "Manual" + "state": "manual" } }, { diff --git a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json index 56eaf445e..6e98bf848 100644 --- a/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json +++ b/tests/data/devices/bosch-rbsh-trv0-zb-eu-0x38011514.json @@ -708,17 +708,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } }, { @@ -742,14 +742,14 @@ "group_id": null, "enum": "BoschControlSequenceOfOperation", "options": [ - "Cooling", - "Heating" + "cooling", + "heating" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Heating" + "state": "heating" } }, { @@ -773,14 +773,14 @@ "group_id": null, "enum": "BoschDisplayOrientation", "options": [ - "Normal", - "Flipped" + "normal", + "flipped" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Normal" + "state": "normal" } }, { @@ -804,14 +804,14 @@ "group_id": null, "enum": "BoschDisplayedTemperature", "options": [ - "Target", - "Measured" + "target", + "measured" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Measured" + "state": "measured" } } ], @@ -989,7 +989,7 @@ "state": { "class_name": "SetpointChangeSource", "available": true, - "state": "Manual" + "state": "manual" } }, { @@ -1045,7 +1045,7 @@ "state": { "class_name": "EnumSensor", "available": true, - "state": "Manual" + "state": "manual" } }, { @@ -1073,7 +1073,7 @@ "state": { "class_name": "EnumSensor", "available": true, - "state": "CalibrationInProgress" + "state": "calibrationinprogress" } } ], diff --git a/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json b/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json index e7a65b84a..95f2d6943 100644 --- a/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json +++ b/tests/data/devices/candeo-c-zb-lc20-dim-0x29013001.json @@ -340,16 +340,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json b/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json index 972562297..d444da668 100644 --- a/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json +++ b/tests/data/devices/candeo-c-zb-lc20-rgb-0x31013001.json @@ -399,16 +399,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/centralite-systems-3156105-0x1418468c.json b/tests/data/devices/centralite-systems-3156105-0x1418468c.json index 78e95611e..91218d889 100644 --- a/tests/data/devices/centralite-systems-3156105-0x1418468c.json +++ b/tests/data/devices/centralite-systems-3156105-0x1418468c.json @@ -610,17 +610,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json b/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json index 99d3a6021..18019ac34 100644 --- a/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json +++ b/tests/data/devices/climaxtechnology-sd8sc-00-00-03-12tc.json @@ -236,10 +236,10 @@ "group_id": null, "enum": "SirenLevel", "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" + "low_level_sound", + "medium_level_sound", + "high_level_sound", + "very_high_level_sound" ] }, "state": { @@ -300,10 +300,10 @@ "group_id": null, "enum": "StrobeLevel", "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" + "low_level_strobe", + "medium_level_strobe", + "high_level_strobe", + "very_high_level_strobe" ] }, "state": { @@ -333,13 +333,13 @@ "group_id": null, "enum": "WarningMode", "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" + "stop", + "burglar", + "fire", + "emergency", + "police_panic", + "fire_panic", + "emergency_panic" ] }, "state": { diff --git a/tests/data/devices/computime-slt3c-0x02040105.json b/tests/data/devices/computime-slt3c-0x02040105.json index 96418d753..07c81519a 100644 --- a/tests/data/devices/computime-slt3c-0x02040105.json +++ b/tests/data/devices/computime-slt3c-0x02040105.json @@ -482,17 +482,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/d5x84yu-et093wrg.json b/tests/data/devices/d5x84yu-et093wrg.json index f85abf36e..d831c9e2d 100644 --- a/tests/data/devices/d5x84yu-et093wrg.json +++ b/tests/data/devices/d5x84yu-et093wrg.json @@ -954,7 +954,7 @@ "state": { "class_name": "SetpointChangeSource", "available": true, - "state": "External" + "state": "external" } }, { diff --git a/tests/data/devices/danfoss-etrv0103-0x00000014.json b/tests/data/devices/danfoss-etrv0103-0x00000014.json index e18a71021..46cef2393 100644 --- a/tests/data/devices/danfoss-etrv0103-0x00000014.json +++ b/tests/data/devices/danfoss-etrv0103-0x00000014.json @@ -897,15 +897,15 @@ "group_id": null, "enum": "DanfossAdaptationRunControlEnum", "options": [ - "Nothing", - "Initiate", - "Cancel" + "nothing", + "initiate", + "cancel" ] }, "state": { "class_name": "DanfossAdaptationRunControl", "available": true, - "state": "Nothing" + "state": "nothing" } }, { @@ -929,23 +929,23 @@ "group_id": null, "enum": "DanfossControlAlgorithmScaleFactorEnum", "options": [ - "quick 5min", - "quick 10min", - "quick 15min", - "quick 25min", - "moderate 30min", - "moderate 40min", - "moderate 50min", - "moderate 60min", - "moderate 70min", - "slow 80min", - "quick open disabled" + "quick_5min", + "quick_10min", + "quick_15min", + "quick_25min", + "moderate_30min", + "moderate_40min", + "moderate_50min", + "moderate_60min", + "moderate_70min", + "slow_80min", + "quick_open_disabled" ] }, "state": { "class_name": "DanfossControlAlgorithmScaleFactor", "available": true, - "state": "quick 5min" + "state": "quick_5min" } }, { @@ -969,20 +969,20 @@ "group_id": null, "enum": "DanfossExerciseDayOfTheWeekEnum", "options": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Undefined" + "sunday", + "monday", + "tuesday", + "wednesday", + "thursday", + "friday", + "saturday", + "undefined" ] }, "state": { "class_name": "DanfossExerciseDayOfTheWeek", "available": true, - "state": "Thursday" + "state": "thursday" } }, { @@ -1006,14 +1006,14 @@ "group_id": null, "enum": "DanfossOrientationEnum", "options": [ - "Horizontal", - "Vertical" + "horizontal", + "vertical" ] }, "state": { "class_name": "DanfossOrientation", "available": true, - "state": "Horizontal" + "state": "horizontal" } }, { @@ -1037,17 +1037,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } }, { @@ -1071,14 +1071,14 @@ "group_id": null, "enum": "DanfossViewingDirectionEnum", "options": [ - "Default", - "Inverted" + "default", + "inverted" ] }, "state": { "class_name": "DanfossViewingDirection", "available": true, - "state": "Default" + "state": "default" } } ], @@ -1370,7 +1370,7 @@ "state": { "class_name": "DanfossOpenWindowDetection", "available": true, - "state": "Closed" + "state": "closed" } }, { @@ -1454,7 +1454,7 @@ "state": { "class_name": "SetpointChangeSource", "available": true, - "state": "External" + "state": "external" } }, { diff --git a/tests/data/devices/datek-pop.json b/tests/data/devices/datek-pop.json index 8161ba1a7..2abceb605 100644 --- a/tests/data/devices/datek-pop.json +++ b/tests/data/devices/datek-pop.json @@ -406,16 +406,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ericsity-gl-c-008p-0x25013001.json b/tests/data/devices/ericsity-gl-c-008p-0x25013001.json index 0491d2639..ef1f91779 100644 --- a/tests/data/devices/ericsity-gl-c-008p-0x25013001.json +++ b/tests/data/devices/ericsity-gl-c-008p-0x25013001.json @@ -463,16 +463,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ericsity-gl-c-009p-0x25013001.json b/tests/data/devices/ericsity-gl-c-009p-0x25013001.json index 8a0cf6176..5acef633a 100644 --- a/tests/data/devices/ericsity-gl-c-009p-0x25013001.json +++ b/tests/data/devices/ericsity-gl-c-009p-0x25013001.json @@ -493,16 +493,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json index a360e22a4..8c9a313d3 100644 --- a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json +++ b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001200.json @@ -543,16 +543,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json index 67060caf3..459cd15d4 100644 --- a/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json +++ b/tests/data/devices/ewelink-ck-bl702-al-01-7009-z102lg03-1-0x00001203.json @@ -537,16 +537,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json b/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json index 1bbf7d312..cf48bce21 100644 --- a/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json +++ b/tests/data/devices/frient-a-s-sirzb-111-0x00020004.json @@ -327,10 +327,10 @@ "group_id": null, "enum": "SirenLevel", "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" + "low_level_sound", + "medium_level_sound", + "high_level_sound", + "very_high_level_sound" ] }, "state": { @@ -391,10 +391,10 @@ "group_id": null, "enum": "StrobeLevel", "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" + "low_level_strobe", + "medium_level_strobe", + "high_level_strobe", + "very_high_level_strobe" ] }, "state": { @@ -424,13 +424,13 @@ "group_id": null, "enum": "WarningMode", "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" + "stop", + "burglar", + "fire", + "emergency", + "police_panic", + "fire_panic", + "emergency_panic" ] }, "state": { diff --git a/tests/data/devices/gledopto-gl-b-008p-0x00000006.json b/tests/data/devices/gledopto-gl-b-008p-0x00000006.json index ffe8334fc..fd7b928df 100644 --- a/tests/data/devices/gledopto-gl-b-008p-0x00000006.json +++ b/tests/data/devices/gledopto-gl-b-008p-0x00000006.json @@ -516,16 +516,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/gledopto-gl-c-009p-0x17013001.json b/tests/data/devices/gledopto-gl-c-009p-0x17013001.json index 67000a6cb..dd0d35376 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x17013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x17013001.json @@ -462,16 +462,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/gledopto-gl-c-009p-0x25013001.json b/tests/data/devices/gledopto-gl-c-009p-0x25013001.json index 30012337a..aae486f2e 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x25013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x25013001.json @@ -341,16 +341,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/gledopto-gl-c-009p-0x29013001.json b/tests/data/devices/gledopto-gl-c-009p-0x29013001.json index 7879d3cc2..1bb08b99b 100644 --- a/tests/data/devices/gledopto-gl-c-009p-0x29013001.json +++ b/tests/data/devices/gledopto-gl-c-009p-0x29013001.json @@ -341,16 +341,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json b/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json index cb5b5da6d..5dd0435ff 100644 --- a/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json +++ b/tests/data/devices/gledopto-gl-sd-301p-0x26013001.json @@ -462,16 +462,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/gledpopto-gl-c-007p.json b/tests/data/devices/gledpopto-gl-c-007p.json index 764270c7e..55d24abd7 100644 --- a/tests/data/devices/gledpopto-gl-c-007p.json +++ b/tests/data/devices/gledpopto-gl-c-007p.json @@ -528,16 +528,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/hobeian-zg-101zl.json b/tests/data/devices/hobeian-zg-101zl.json index 8f14a7ec7..d6f9fdc06 100644 --- a/tests/data/devices/hobeian-zg-101zl.json +++ b/tests/data/devices/hobeian-zg-101zl.json @@ -439,16 +439,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Toggle" + "state": "toggle" } } ], diff --git a/tests/data/devices/hobeian-zg-229z.json b/tests/data/devices/hobeian-zg-229z.json index f704b0e06..0ecd5c918 100644 --- a/tests/data/devices/hobeian-zg-229z.json +++ b/tests/data/devices/hobeian-zg-229z.json @@ -273,16 +273,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/homr-hrmsn01.json b/tests/data/devices/homr-hrmsn01.json index d14dfabf7..f96f25728 100644 --- a/tests/data/devices/homr-hrmsn01.json +++ b/tests/data/devices/homr-hrmsn01.json @@ -585,10 +585,10 @@ "group_id": null, "enum": "SirenLevel", "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" + "low_level_sound", + "medium_level_sound", + "high_level_sound", + "very_high_level_sound" ] }, "state": { @@ -649,10 +649,10 @@ "group_id": null, "enum": "StrobeLevel", "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" + "low_level_strobe", + "medium_level_strobe", + "high_level_strobe", + "very_high_level_strobe" ] }, "state": { @@ -682,13 +682,13 @@ "group_id": null, "enum": "WarningMode", "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" + "stop", + "burglar", + "fire", + "emergency", + "police_panic", + "fire_panic", + "emergency_panic" ] }, "state": { diff --git a/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json b/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json index ba8b1ee91..9f41b23b5 100644 --- a/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json +++ b/tests/data/devices/ikea-of-sweden-fyrtur-block-out-roller-blind-0x23088631.json @@ -443,7 +443,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json b/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json index 2fd7c7830..05e6a5349 100644 --- a/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json +++ b/tests/data/devices/ikea-of-sweden-inspelning-smart-plug-0x02040045.json @@ -568,16 +568,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json b/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json index b0aa0bfc7..97030ad51 100644 --- a/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json +++ b/tests/data/devices/ikea-of-sweden-ormanas-led-strip-0x01010010.json @@ -671,16 +671,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json b/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json index 0526f74d8..86e54f4a5 100644 --- a/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json +++ b/tests/data/devices/ikea-of-sweden-praktlysing-cellular-blind-0x23088631.json @@ -450,7 +450,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json index 740a8d7f9..cfd3ab92e 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-w-op-ch-400lm-0x23094631.json @@ -457,16 +457,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json index b3e8f892d..e03d80a96 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e12-ws-opal-400lm-0x23087631.json @@ -593,16 +593,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json index 0b92b343c..36d085f5f 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e14-ws-globe-470lm-0x01010020.json @@ -538,16 +538,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json index 087c96707..093c72cf2 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-opal-1000lm-0x23094631.json @@ -457,16 +457,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json index b29a934e2..c65f7b719 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-w-opal-1000lm-0x23094631.json @@ -451,16 +451,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json index c1a479f91..bbde5bf5d 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e26-ws-opal-980lm-0x23095631.json @@ -573,16 +573,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json index eaae510f3..19ff4c6b0 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ws-globe-1055lm-0x02040005.json @@ -554,16 +554,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json index e876bd3c2..83af3e7e1 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-e27-ww-g95-cl-470lm-0x00011006.json @@ -437,16 +437,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json index e5b340b69..47e51d4b6 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ws-400lm-0x23095631.json @@ -599,16 +599,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json index aaaafdefe..8b93ad54a 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-345lm8.json @@ -432,16 +432,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json index 3f789b4f2..fe5113218 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-bulb-gu10-ww-400lm-0x23093631.json @@ -456,16 +456,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json b/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json index 55d3b4ab9..ab37e0f19 100644 --- a/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json +++ b/tests/data/devices/ikea-of-sweden-tradfri-control-outlet-0x23089631.json @@ -285,16 +285,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/innr-ae-280-c-0x20026a30.json b/tests/data/devices/innr-ae-280-c-0x20026a30.json index 86e45b685..935becd49 100644 --- a/tests/data/devices/innr-ae-280-c-0x20026a30.json +++ b/tests/data/devices/innr-ae-280-c-0x20026a30.json @@ -525,16 +525,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/innr-rb-285-c-0x10051567.json b/tests/data/devices/innr-rb-285-c-0x10051567.json index b1ed32b5a..ec1abf8d7 100644 --- a/tests/data/devices/innr-rb-285-c-0x10051567.json +++ b/tests/data/devices/innr-rb-285-c-0x10051567.json @@ -498,16 +498,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/innr-rs-232-c-0x22151511.json b/tests/data/devices/innr-rs-232-c-0x22151511.json index 6834a9aa9..5e8649ba6 100644 --- a/tests/data/devices/innr-rs-232-c-0x22151511.json +++ b/tests/data/devices/innr-rs-232-c-0x22151511.json @@ -604,16 +604,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/innr-sp-234-0x31016610.json b/tests/data/devices/innr-sp-234-0x31016610.json index ed4958f25..2bb807e0f 100644 --- a/tests/data/devices/innr-sp-234-0x31016610.json +++ b/tests/data/devices/innr-sp-234-0x31016610.json @@ -494,16 +494,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/innr-sp-240-0x191e3685.json b/tests/data/devices/innr-sp-240-0x191e3685.json index 47989dd36..bc5da3e48 100644 --- a/tests/data/devices/innr-sp-240-0x191e3685.json +++ b/tests/data/devices/innr-sp-240-0x191e3685.json @@ -627,16 +627,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/innr-sp-242-0x17173685.json b/tests/data/devices/innr-sp-242-0x17173685.json index 15626e143..03fc9dc77 100644 --- a/tests/data/devices/innr-sp-242-0x17173685.json +++ b/tests/data/devices/innr-sp-242-0x17173685.json @@ -772,16 +772,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json index caa7ceec6..364679785 100644 --- a/tests/data/devices/inovelli-vzm30-sn-0x01100100.json +++ b/tests/data/devices/inovelli-vzm30-sn-0x01100100.json @@ -998,16 +998,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], @@ -1253,7 +1253,7 @@ "state": { "class_name": "InovelliOverheated", "available": true, - "state": "Normal" + "state": "normal" } }, { diff --git a/tests/data/devices/inovelli-vzm30-sn.json b/tests/data/devices/inovelli-vzm30-sn.json index d01a0181b..322e9e3d9 100644 --- a/tests/data/devices/inovelli-vzm30-sn.json +++ b/tests/data/devices/inovelli-vzm30-sn.json @@ -1551,16 +1551,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json index b4966d36c..2696ab095 100644 --- a/tests/data/devices/inovelli-vzm31-sn-0x01020212.json +++ b/tests/data/devices/inovelli-vzm31-sn-0x01020212.json @@ -1715,16 +1715,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -1748,14 +1748,14 @@ "group_id": null, "enum": "InovelliDimmingMode", "options": [ - "LeadingEdge", - "TrailingEdge" + "leadingedge", + "trailingedge" ] }, "state": { "class_name": "InovelliDimmingModeEntity", "available": true, - "state": "LeadingEdge" + "state": "leadingedge" } }, { @@ -1779,14 +1779,14 @@ "group_id": null, "enum": "InovelliOutputMode", "options": [ - "Dimmer", - "OnOff" + "dimmer", + "onoff" ] }, "state": { "class_name": "InovelliOutputModeEntity", "available": true, - "state": "OnOff" + "state": "onoff" } }, { @@ -1810,16 +1810,16 @@ "group_id": null, "enum": "InovelliSwitchType", "options": [ - "Single Pole", - "Three Way Dumb", - "Three Way AUX", - "Single Pole Full Sine" + "single_pole", + "three_way_dumb", + "three_way_aux", + "single_pole_full_sine" ] }, "state": { "class_name": "InovelliSwitchTypeEntity", "available": true, - "state": "Single Pole" + "state": "single_pole" } } ], @@ -2001,7 +2001,7 @@ "state": { "class_name": "InovelliOverheated", "available": true, - "state": "Normal" + "state": "normal" } } ], diff --git a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json index 701127f07..c0a54a1a7 100644 --- a/tests/data/devices/inovelli-vzm35-sn-0x02020107.json +++ b/tests/data/devices/inovelli-vzm35-sn-0x02020107.json @@ -1469,16 +1469,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -1502,14 +1502,14 @@ "group_id": null, "enum": "InovelliOutputMode", "options": [ - "Dimmer", - "OnOff" + "dimmer", + "onoff" ] }, "state": { "class_name": "InovelliOutputModeEntity", "available": true, - "state": "OnOff" + "state": "onoff" } }, { @@ -1533,23 +1533,23 @@ "group_id": null, "enum": "InovelliFanLedScalingMode", "options": [ - "VZM31SN", - "Grade 1", - "Grade 2", - "Grade 3", - "Grade 4", - "Grade 5", - "Grade 6", - "Grade 7", - "Grade 8", - "Grade 9", - "Adaptive" + "vzm31sn", + "grade_1", + "grade_2", + "grade_3", + "grade_4", + "grade_5", + "grade_6", + "grade_7", + "grade_8", + "grade_9", + "adaptive" ] }, "state": { "class_name": "InovelliFanLedScalingModeEntity", "available": true, - "state": "Adaptive" + "state": "adaptive" } }, { @@ -1573,14 +1573,14 @@ "group_id": null, "enum": "InovelliFanSwitchType", "options": [ - "Load Only", - "Three Way AUX" + "load_only", + "three_way_aux" ] }, "state": { "class_name": "InovelliFanSwitchTypeEntity", "available": true, - "state": "Load Only" + "state": "load_only" } } ], @@ -1694,7 +1694,7 @@ "state": { "class_name": "InovelliOverheated", "available": true, - "state": "Normal" + "state": "normal" } } ], diff --git a/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json b/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json index d8d945965..d6ea440a8 100644 --- a/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json +++ b/tests/data/devices/lds-zb-onoffplug-d0005-0x21186230.json @@ -440,16 +440,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/legrand-contactor.json b/tests/data/devices/legrand-contactor.json index 76377372d..4743bcaa9 100644 --- a/tests/data/devices/legrand-contactor.json +++ b/tests/data/devices/legrand-contactor.json @@ -631,16 +631,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json index bbc29ba55..520cb23f6 100644 --- a/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json +++ b/tests/data/devices/legrand-dimmer-switch-w-o-neutral-0x004d45ff.json @@ -682,16 +682,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Toggle" + "state": "toggle" } } ], diff --git a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json index 4a90c7089..42d3f359a 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json +++ b/tests/data/devices/legrand-light-switch-with-neutral-0x001c4203.json @@ -366,16 +366,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/legrand-light-switch-with-neutral.json b/tests/data/devices/legrand-light-switch-with-neutral.json index 8e2c9808c..2437c0b0e 100644 --- a/tests/data/devices/legrand-light-switch-with-neutral.json +++ b/tests/data/devices/legrand-light-switch-with-neutral.json @@ -437,16 +437,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json index b44c140e7..b067947d2 100644 --- a/tests/data/devices/legrand-mobile-outlet-0x006545ff.json +++ b/tests/data/devices/legrand-mobile-outlet-0x006545ff.json @@ -723,16 +723,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json b/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json index e67c691a6..bd6cc36e1 100644 --- a/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json +++ b/tests/data/devices/lk-zbt-onoffplug-d0001-0x22036610.json @@ -396,16 +396,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json b/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json index b56583389..1b7cdd50e 100644 --- a/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-airrtc-agl001-0x0000001e.json @@ -638,15 +638,15 @@ "group_id": null, "enum": "AqaraThermostatPresetMode", "options": [ - "Manual", - "Auto", - "Away" + "manual", + "auto", + "away" ] }, "state": { "class_name": "AqaraThermostatPreset", "available": true, - "state": "Manual" + "state": "manual" } } ], diff --git a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json index 7f995e71d..232a08a9f 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json +++ b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000e1f.json @@ -530,15 +530,15 @@ "group_id": null, "enum": "AqaraRollerDriverSpeed", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "High" + "state": "high" } } ], @@ -687,7 +687,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json index 927a26b66..bb40e2624 100644 --- a/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json +++ b/tests/data/devices/lumi-lumi-curtain-acn002-0x00000f20.json @@ -519,15 +519,15 @@ "group_id": null, "enum": "AqaraRollerDriverSpeed", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "High" + "state": "high" } } ], @@ -676,7 +676,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json b/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json index 5af8f6ff3..d14cd5faf 100644 --- a/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json +++ b/tests/data/devices/lumi-lumi-curtain-agl001-0x00000018.json @@ -459,7 +459,7 @@ "state": { "class_name": "AqaraCurtainMotorPowerSourceSensor", "available": true, - "state": "Battery" + "state": "battery" } }, { @@ -579,7 +579,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Drapery" + "state": "drapery" } }, { @@ -607,7 +607,7 @@ "state": { "class_name": "AqaraCurtainHookStateSensor", "available": true, - "state": "Locked" + "state": "locked" } } ], diff --git a/tests/data/devices/lumi-lumi-curtain-hagl04.json b/tests/data/devices/lumi-lumi-curtain-hagl04.json index 9bb233268..90229e5e3 100644 --- a/tests/data/devices/lumi-lumi-curtain-hagl04.json +++ b/tests/data/devices/lumi-lumi-curtain-hagl04.json @@ -442,7 +442,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Drapery" + "state": "drapery" } } ], diff --git a/tests/data/devices/lumi-lumi-magnet-ac01.json b/tests/data/devices/lumi-lumi-magnet-ac01.json index 568afa736..16c73e14d 100644 --- a/tests/data/devices/lumi-lumi-magnet-ac01.json +++ b/tests/data/devices/lumi-lumi-magnet-ac01.json @@ -245,15 +245,15 @@ "group_id": null, "enum": "DetectionDistance", "options": [ - "TenMillimeters", - "TwentyMillimeters", - "ThirtyMillimeters" + "tenmillimeters", + "twentymillimeters", + "thirtymillimeters" ] }, "state": { "class_name": "AqaraMagnetAC01DetectionDistance", "available": true, - "state": "TwentyMillimeters" + "state": "twentymillimeters" } } ], diff --git a/tests/data/devices/lumi-lumi-motion-ac02.json b/tests/data/devices/lumi-lumi-motion-ac02.json index 5f065252c..a90521510 100644 --- a/tests/data/devices/lumi-lumi-motion-ac02.json +++ b/tests/data/devices/lumi-lumi-motion-ac02.json @@ -372,15 +372,15 @@ "group_id": null, "enum": "AqaraMotionSensitivities", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "AqaraMotionSensitivity", "available": true, - "state": "High" + "state": "high" } } ], diff --git a/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json b/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json index 331a95bcf..8dfbe6344 100644 --- a/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json +++ b/tests/data/devices/lumi-lumi-motion-agl04-0x00000019.json @@ -355,15 +355,15 @@ "group_id": null, "enum": "AqaraMotionSensitivities", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "AqaraMotionSensitivity", "available": true, - "state": "High" + "state": "high" } } ], diff --git a/tests/data/devices/lumi-lumi-remote-b28ac1.json b/tests/data/devices/lumi-lumi-remote-b28ac1.json index 045c47ff5..8cf7ccb39 100644 --- a/tests/data/devices/lumi-lumi-remote-b28ac1.json +++ b/tests/data/devices/lumi-lumi-remote-b28ac1.json @@ -290,8 +290,8 @@ "group_id": null, "enum": "AqaraSwitchClickMode", "options": [ - "Single", - "Multiple" + "single", + "multiple" ] }, "state": { @@ -321,8 +321,8 @@ "group_id": null, "enum": "AqaraSwitchOperationMode", "options": [ - "Command", - "Event" + "command", + "event" ] }, "state": { diff --git a/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json b/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json index dc13b9a23..1496af7f5 100644 --- a/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json +++ b/tests/data/devices/lumi-lumi-switch-n0agl1-0x0000001e.json @@ -738,16 +738,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/lumi-lumi-switch-n0agl1.json b/tests/data/devices/lumi-lumi-switch-n0agl1.json index 058873310..d822d6634 100644 --- a/tests/data/devices/lumi-lumi-switch-n0agl1.json +++ b/tests/data/devices/lumi-lumi-switch-n0agl1.json @@ -738,16 +738,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/namron-as-4512785-0x0000000e.json b/tests/data/devices/namron-as-4512785-0x0000000e.json index 182457059..2fc50ef63 100644 --- a/tests/data/devices/namron-as-4512785-0x0000000e.json +++ b/tests/data/devices/namron-as-4512785-0x0000000e.json @@ -658,16 +658,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json b/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json index d0b7270ab..e44232b0e 100644 --- a/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json +++ b/tests/data/devices/niko-nv-connectable-motor-control-3a-0x21160006.json @@ -540,7 +540,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/nodon-sin-4-fp-21.json b/tests/data/devices/nodon-sin-4-fp-21.json index cfe3814e8..79c9cb8ba 100644 --- a/tests/data/devices/nodon-sin-4-fp-21.json +++ b/tests/data/devices/nodon-sin-4-fp-21.json @@ -505,16 +505,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -538,12 +538,12 @@ "group_id": null, "enum": "NodOnPilotWireMode", "options": [ - "Off", - "Comfort", - "Eco", - "FrostProtection", - "ComfortMinus1", - "ComfortMinus2" + "off", + "comfort", + "eco", + "frostprotection", + "comfortminus1", + "comfortminus2" ] }, "state": { diff --git a/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json b/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json index 09cf74bfa..7c65f8bc4 100644 --- a/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json +++ b/tests/data/devices/nodon-sin-4-rs-20-0x00010300.json @@ -565,7 +565,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Tilt_blind_tilt_and_lift" + "state": "tilt_blind_tilt_and_lift" } } ], diff --git a/tests/data/devices/philips-7602031u7-0x01001d00.json b/tests/data/devices/philips-7602031u7-0x01001d00.json index 00d24c613..50e05a6b1 100644 --- a/tests/data/devices/philips-7602031u7-0x01001d00.json +++ b/tests/data/devices/philips-7602031u7-0x01001d00.json @@ -546,16 +546,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/philips-915005988601-0x01002000.json b/tests/data/devices/philips-915005988601-0x01002000.json index b85490f1d..2d6d7765a 100644 --- a/tests/data/devices/philips-915005988601-0x01002000.json +++ b/tests/data/devices/philips-915005988601-0x01002000.json @@ -498,16 +498,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/philips-lct014-0x01001a02.json b/tests/data/devices/philips-lct014-0x01001a02.json index 9ee96dc19..8c13c308f 100644 --- a/tests/data/devices/philips-lct014-0x01001a02.json +++ b/tests/data/devices/philips-lct014-0x01001a02.json @@ -512,16 +512,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/philips-lct026.json b/tests/data/devices/philips-lct026.json index 49a4c4a28..88aee33b9 100644 --- a/tests/data/devices/philips-lct026.json +++ b/tests/data/devices/philips-lct026.json @@ -504,16 +504,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/philips-llc020-0x42006734.json b/tests/data/devices/philips-llc020-0x42006734.json index 9b267a987..efc5a60a6 100644 --- a/tests/data/devices/philips-llc020-0x42006734.json +++ b/tests/data/devices/philips-llc020-0x42006734.json @@ -500,16 +500,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/philips-sml001-0x42006bb7.json b/tests/data/devices/philips-sml001-0x42006bb7.json index 0151853ce..650924089 100644 --- a/tests/data/devices/philips-sml001-0x42006bb7.json +++ b/tests/data/devices/philips-sml001-0x42006bb7.json @@ -373,15 +373,15 @@ "group_id": null, "enum": "HueV1MotionSensitivities", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "HueV1MotionSensitivity", "available": true, - "state": "High" + "state": "high" } } ], diff --git a/tests/data/devices/philips-sml001-0x43007305.json b/tests/data/devices/philips-sml001-0x43007305.json index 623829f30..63588849f 100644 --- a/tests/data/devices/philips-sml001-0x43007305.json +++ b/tests/data/devices/philips-sml001-0x43007305.json @@ -380,15 +380,15 @@ "group_id": null, "enum": "HueV1MotionSensitivities", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "HueV1MotionSensitivity", "available": true, - "state": "Low" + "state": "low" } } ], diff --git a/tests/data/devices/philips-sml001-0x43007401.json b/tests/data/devices/philips-sml001-0x43007401.json index b37b2d3be..3be0a0331 100644 --- a/tests/data/devices/philips-sml001-0x43007401.json +++ b/tests/data/devices/philips-sml001-0x43007401.json @@ -380,15 +380,15 @@ "group_id": null, "enum": "HueV1MotionSensitivities", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "HueV1MotionSensitivity", "available": true, - "state": "High" + "state": "high" } } ], diff --git a/tests/data/devices/schneider-electric-eko07259-0x01001d00.json b/tests/data/devices/schneider-electric-eko07259-0x01001d00.json index f01046dee..92e21c124 100644 --- a/tests/data/devices/schneider-electric-eko07259-0x01001d00.json +++ b/tests/data/devices/schneider-electric-eko07259-0x01001d00.json @@ -2050,17 +2050,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } }, { @@ -2084,15 +2084,15 @@ "group_id": null, "enum": "SEControlType", "options": [ - "OnOff", - "PI", - "NoControl" + "onoff", + "pi", + "nocontrol" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "NoControl" + "state": "nocontrol" } }, { @@ -2116,15 +2116,15 @@ "group_id": null, "enum": "SEHeatTransferMedium", "options": [ - "Nothing", - "Hydronic", - "Air" + "nothing", + "hydronic", + "air" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Nothing" + "state": "nothing" } }, { @@ -2148,18 +2148,18 @@ "group_id": null, "enum": "SEHeatingEmitterType", "options": [ - "Direct", - "Radiator", - "FanAssistedRadiator", - "RadiantPanel", - "Floor", - "NotSpecified" + "direct", + "radiator", + "fanassistedradiator", + "radiantpanel", + "floor", + "notspecified" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Floor" + "state": "floor" } }, { @@ -2183,20 +2183,20 @@ "group_id": null, "enum": "SEHeatingFuel", "options": [ - "Electricity", - "Gas", - "Oil", - "SolidFuel", - "Solar", - "ComunityHeating", - "HeatPump", - "NotSpecified" + "electricity", + "gas", + "oil", + "solidfuel", + "solar", + "comunityheating", + "heatpump", + "notspecified" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Electricity" + "state": "electricity" } }, { @@ -2220,14 +2220,14 @@ "group_id": null, "enum": "SELocalTemperatureSourceSelect", "options": [ - "Ambient", - "External" + "ambient", + "external" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Ambient" + "state": "ambient" } }, { @@ -2251,15 +2251,15 @@ "group_id": null, "enum": "SEThermostatApplication", "options": [ - "OccupiedSpace", - "Floor", - "NotKnown" + "occupiedspace", + "floor", + "notknown" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Floor" + "state": "floor" } }, { @@ -2283,19 +2283,19 @@ "group_id": null, "enum": "SETemperatureSensorType", "options": [ - "Sensor2kOhm", - "Sensor10kOhm", - "Sensor12kOhm", - "Sensor15kOhm", - "Sensor33kOhm", - "Sensor47kOhm", - "SensorAbsent" + "sensor2kohm", + "sensor10kohm", + "sensor12kohm", + "sensor15kohm", + "sensor33kohm", + "sensor47kohm", + "sensorabsent" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "SensorAbsent" + "state": "sensorabsent" } } ], @@ -2465,7 +2465,7 @@ "state": { "class_name": "EnumSensor", "available": true, - "state": "NormalOperation" + "state": "normaloperation" } }, { diff --git a/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json b/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json index 2d23b2d10..aba5587f7 100644 --- a/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json +++ b/tests/data/devices/schneider-electric-evsckt-outlet-1-0x020a00ff.json @@ -488,16 +488,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json b/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json index bb252b2a7..a2fa2018f 100644 --- a/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json +++ b/tests/data/devices/schneider-electric-puck-shutter-1-0x020c02ff.json @@ -683,7 +683,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Tilt_blind_tilt_and_lift" + "state": "tilt_blind_tilt_and_lift" } } ], diff --git a/tests/data/devices/schneider-electric-s520619-0x01003500.json b/tests/data/devices/schneider-electric-s520619-0x01003500.json index 90d4770a1..39b52f252 100644 --- a/tests/data/devices/schneider-electric-s520619-0x01003500.json +++ b/tests/data/devices/schneider-electric-s520619-0x01003500.json @@ -791,17 +791,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json b/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json index a9bec7cad..bebfca741 100644 --- a/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json +++ b/tests/data/devices/schneider-electric-socket-outlet-1-0x020612ff.json @@ -578,16 +578,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json b/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json index aef258d54..0073769df 100644 --- a/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json +++ b/tests/data/devices/schneider-electric-socket-outlet-2-0x020612ff.json @@ -578,16 +578,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/sengled-e1c-nb7-0x0000001a.json b/tests/data/devices/sengled-e1c-nb7-0x0000001a.json index 2d4ab23bf..15195a2e6 100644 --- a/tests/data/devices/sengled-e1c-nb7-0x0000001a.json +++ b/tests/data/devices/sengled-e1c-nb7-0x0000001a.json @@ -326,16 +326,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/shelly-2pm.json b/tests/data/devices/shelly-2pm.json index 0262d4204..d8bf97c51 100644 --- a/tests/data/devices/shelly-2pm.json +++ b/tests/data/devices/shelly-2pm.json @@ -390,7 +390,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Shutter" + "state": "shutter" } } ] diff --git a/tests/data/devices/shelly-dimmer.json b/tests/data/devices/shelly-dimmer.json index e57e08e6c..8af25b64d 100644 --- a/tests/data/devices/shelly-dimmer.json +++ b/tests/data/devices/shelly-dimmer.json @@ -813,16 +813,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json b/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json index 852bd2ebf..40b1028b8 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json +++ b/tests/data/devices/signify-netherlands-b-v-lca001-0x01002802.json @@ -529,16 +529,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json b/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json index aabe10692..a5a09a92c 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json +++ b/tests/data/devices/signify-netherlands-b-v-lca005-0x01002402.json @@ -510,16 +510,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json index 461abd49b..8b36f4aeb 100644 --- a/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lca007-0x01001f0a.json @@ -498,16 +498,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json b/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json index 1c5794f6c..73254cde6 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json +++ b/tests/data/devices/signify-netherlands-b-v-lcb001-0x01002800.json @@ -535,16 +535,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json index 316230002..a633df812 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lcb002-0x01001f0a.json @@ -498,16 +498,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json b/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json index f6847bb9d..b7b3d90b9 100644 --- a/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json +++ b/tests/data/devices/signify-netherlands-b-v-lce001-0x01002404.json @@ -498,16 +498,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json b/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json index 8f016d09d..1a49276e8 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json +++ b/tests/data/devices/signify-netherlands-b-v-lcg006-0x01002502.json @@ -498,16 +498,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json b/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json index 8ef82800e..c1f91726e 100644 --- a/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json +++ b/tests/data/devices/signify-netherlands-b-v-lcx004-0x01001802.json @@ -492,16 +492,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json b/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json index c66213401..2420e4bf5 100644 --- a/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json +++ b/tests/data/devices/signify-netherlands-b-v-lta010-0x01002402.json @@ -486,16 +486,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json index 19776c812..76118ba4c 100644 --- a/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-ltb003-0x01001f0a.json @@ -492,16 +492,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json b/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json index 447265bce..c24b8aef8 100644 --- a/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json +++ b/tests/data/devices/signify-netherlands-b-v-lwa003-0x01001f0a.json @@ -369,16 +369,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json index 6ac8cd6d0..ed28f50d0 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml003-0x02003506.json @@ -337,17 +337,17 @@ "group_id": null, "enum": "HueV2MotionSensitivities", "options": [ - "Lowest", - "Low", - "Medium", - "High", - "Highest" + "lowest", + "low", + "medium", + "high", + "highest" ] }, "state": { "class_name": "HueV2MotionSensitivity", "available": true, - "state": "High" + "state": "high" } } ], diff --git a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json index d39162798..623c52a1a 100644 --- a/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json +++ b/tests/data/devices/signify-netherlands-b-v-sml004-0x02003506.json @@ -337,17 +337,17 @@ "group_id": null, "enum": "HueV2MotionSensitivities", "options": [ - "Lowest", - "Low", - "Medium", - "High", - "Highest" + "lowest", + "low", + "medium", + "high", + "highest" ] }, "state": { "class_name": "HueV2MotionSensitivity", "available": true, - "state": "Lowest" + "state": "lowest" } } ], diff --git a/tests/data/devices/smartwings-wm25-l-z-0x00000002.json b/tests/data/devices/smartwings-wm25-l-z-0x00000002.json index 178729f0e..14ffded6d 100644 --- a/tests/data/devices/smartwings-wm25-l-z-0x00000002.json +++ b/tests/data/devices/smartwings-wm25-l-z-0x00000002.json @@ -480,7 +480,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json b/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json index 7b96dc427..70a5ed5b6 100644 --- a/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json +++ b/tests/data/devices/somfy-sonesse-28-wf-li-ion-roller-0x4100e158.json @@ -433,7 +433,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } }, { diff --git a/tests/data/devices/sonoff-dongle-e-r.json b/tests/data/devices/sonoff-dongle-e-r.json index a3a6e4fed..c1b6c7498 100644 --- a/tests/data/devices/sonoff-dongle-e-r.json +++ b/tests/data/devices/sonoff-dongle-e-r.json @@ -638,16 +638,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -671,16 +671,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/sonoff-mini-zbdim-0x00001005.json b/tests/data/devices/sonoff-mini-zbdim-0x00001005.json index c9f6bcd3c..f49569455 100644 --- a/tests/data/devices/sonoff-mini-zbdim-0x00001005.json +++ b/tests/data/devices/sonoff-mini-zbdim-0x00001005.json @@ -619,16 +619,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json b/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json index 5e3b3e107..3129c1c74 100644 --- a/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json +++ b/tests/data/devices/sonoff-mini-zbrbs-0x00001005.json @@ -393,8 +393,8 @@ "group_id": null, "enum": "SonoffExternalSwitchTriggerType", "options": [ - "edge trigger", - "pulse trigger" + "edge_trigger", + "pulse_trigger" ] }, "state": { @@ -486,7 +486,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } }, { diff --git a/tests/data/devices/sonoff-s60zbtpg-0x00001002.json b/tests/data/devices/sonoff-s60zbtpg-0x00001002.json index eb76bc0e5..d08dddd4c 100644 --- a/tests/data/devices/sonoff-s60zbtpg-0x00001002.json +++ b/tests/data/devices/sonoff-s60zbtpg-0x00001002.json @@ -572,16 +572,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/sonoff-snzb-02d-0x00002300.json b/tests/data/devices/sonoff-snzb-02d-0x00002300.json index d5b4a219a..0b6f4918c 100644 --- a/tests/data/devices/sonoff-snzb-02d-0x00002300.json +++ b/tests/data/devices/sonoff-snzb-02d-0x00002300.json @@ -451,14 +451,14 @@ "group_id": null, "enum": "TemperatureUnit", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Fahrenheit" + "state": "fahrenheit" } } ], diff --git a/tests/data/devices/sonoff-snzb-06p-0x00001006.json b/tests/data/devices/sonoff-snzb-06p-0x00001006.json index e676d5c5d..83da7a765 100644 --- a/tests/data/devices/sonoff-snzb-06p-0x00001006.json +++ b/tests/data/devices/sonoff-snzb-06p-0x00001006.json @@ -281,15 +281,15 @@ "group_id": null, "enum": "SonoffPresenceDetectionSensitivityEnum", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "SonoffPresenceDetectionSensitivity", "available": true, - "state": "Low" + "state": "low" } } ], @@ -375,7 +375,7 @@ "state": { "class_name": "SonoffPresenceSenorIlluminationStatus", "available": true, - "state": "Light" + "state": "light" } } ], diff --git a/tests/data/devices/sonoff-zbmicro-0x00001005.json b/tests/data/devices/sonoff-zbmicro-0x00001005.json index 024eca25c..19cb00fe9 100644 --- a/tests/data/devices/sonoff-zbmicro-0x00001005.json +++ b/tests/data/devices/sonoff-zbmicro-0x00001005.json @@ -228,16 +228,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/sonoff-zbminil2-0x0000100e.json b/tests/data/devices/sonoff-zbminil2-0x0000100e.json index db32f87ca..d3fc7f786 100644 --- a/tests/data/devices/sonoff-zbminil2-0x0000100e.json +++ b/tests/data/devices/sonoff-zbminil2-0x0000100e.json @@ -236,16 +236,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Toggle" + "state": "toggle" } } ], diff --git a/tests/data/devices/sonoff-zbminir2-0x00001004.json b/tests/data/devices/sonoff-zbminir2-0x00001004.json index b5c4b9dc9..40edea828 100644 --- a/tests/data/devices/sonoff-zbminir2-0x00001004.json +++ b/tests/data/devices/sonoff-zbminir2-0x00001004.json @@ -367,16 +367,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } }, { @@ -400,16 +400,16 @@ "group_id": null, "enum": "SonoffExternalSwitchTriggerType", "options": [ - "Edge trigger", - "Pulse trigger", - "Normally off follow trigger", - "Normally on follow trigger" + "edge_trigger", + "pulse_trigger", + "normally_off_follow_trigger", + "normally_on_follow_trigger" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Edge trigger" + "state": "edge_trigger" } } ], diff --git a/tests/data/devices/sunricher-hk-dim-0x00000036.json b/tests/data/devices/sunricher-hk-dim-0x00000036.json index 62ceb22fb..a8c032f76 100644 --- a/tests/data/devices/sunricher-hk-dim-0x00000036.json +++ b/tests/data/devices/sunricher-hk-dim-0x00000036.json @@ -980,16 +980,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json b/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json index fb6c6a70c..b71186fb6 100644 --- a/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json +++ b/tests/data/devices/sunricher-hk-ln-dim-a-0x00000039.json @@ -457,16 +457,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/sunricher-on-off-2ch-0x00000004.json b/tests/data/devices/sunricher-on-off-2ch-0x00000004.json index 14d33934f..11a4e9084 100644 --- a/tests/data/devices/sunricher-on-off-2ch-0x00000004.json +++ b/tests/data/devices/sunricher-on-off-2ch-0x00000004.json @@ -795,16 +795,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -828,16 +828,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json b/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json index e0eb5e47b..837f524ec 100644 --- a/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json +++ b/tests/data/devices/the-home-depot-ecosmart-zbt-a19-cct-bulb-0x21036500.json @@ -584,16 +584,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json index 37f1b88fc..5cd0c5342 100644 --- a/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json +++ b/tests/data/devices/third-reality-inc-3rsb015bz-0x00000048.json @@ -518,7 +518,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json b/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json index 5ad098a02..a31b741a9 100644 --- a/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json +++ b/tests/data/devices/third-reality-inc-3rsnl02043z-0x0000003c.json @@ -609,16 +609,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json b/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json index 784e6eea6..170354b34 100644 --- a/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json +++ b/tests/data/devices/third-reality-inc-3rsp019bz-0x1001301e.json @@ -367,16 +367,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json index 781d9bce5..adce23124 100644 --- a/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json +++ b/tests/data/devices/third-reality-inc-3rsp02028bz-0x10013058.json @@ -542,16 +542,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json index 53d751658..189268813 100644 --- a/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json +++ b/tests/data/devices/third-reality-inc-3rsp02064z-0x0000002f.json @@ -742,16 +742,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/tyst11-czk78ptr-zk78ptr.json b/tests/data/devices/tyst11-czk78ptr-zk78ptr.json index a98833a2e..ae4a4dd39 100644 --- a/tests/data/devices/tyst11-czk78ptr-zk78ptr.json +++ b/tests/data/devices/tyst11-czk78ptr-zk78ptr.json @@ -341,17 +341,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tyzb01-8scntis1-ts0216.json b/tests/data/devices/tyzb01-8scntis1-ts0216.json index dffdddeeb..145b2383c 100644 --- a/tests/data/devices/tyzb01-8scntis1-ts0216.json +++ b/tests/data/devices/tyzb01-8scntis1-ts0216.json @@ -314,10 +314,10 @@ "group_id": null, "enum": "SirenLevel", "options": [ - "Low level sound", - "Medium level sound", - "High level sound", - "Very high level sound" + "low_level_sound", + "medium_level_sound", + "high_level_sound", + "very_high_level_sound" ] }, "state": { @@ -378,10 +378,10 @@ "group_id": null, "enum": "StrobeLevel", "options": [ - "Low level strobe", - "Medium level strobe", - "High level strobe", - "Very high level strobe" + "low_level_strobe", + "medium_level_strobe", + "high_level_strobe", + "very_high_level_strobe" ] }, "state": { @@ -411,13 +411,13 @@ "group_id": null, "enum": "WarningMode", "options": [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic" + "stop", + "burglar", + "fire", + "emergency", + "police_panic", + "fire_panic", + "emergency_panic" ] }, "state": { diff --git a/tests/data/devices/tz2000-k4yr34vv-sm0301.json b/tests/data/devices/tz2000-k4yr34vv-sm0301.json index 0fc1ba6ff..8b75d9a6a 100644 --- a/tests/data/devices/tz2000-k4yr34vv-sm0301.json +++ b/tests/data/devices/tz2000-k4yr34vv-sm0301.json @@ -443,16 +443,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/tz3000-303avxxt-ts011f.json b/tests/data/devices/tz3000-303avxxt-ts011f.json index 21b784ec1..9287434da 100644 --- a/tests/data/devices/tz3000-303avxxt-ts011f.json +++ b/tests/data/devices/tz3000-303avxxt-ts011f.json @@ -524,15 +524,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -556,15 +556,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json b/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json index 0baa0c214..06fa0750f 100644 --- a/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json +++ b/tests/data/devices/tz3000-8nkb7mof-ts0121-0x00000042.json @@ -496,15 +496,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -528,15 +528,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json b/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json index e4bc8e797..6046a96d4 100644 --- a/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json +++ b/tests/data/devices/tz3000-drc9tuqb-ts0001-0x00000047.json @@ -333,15 +333,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "Off" + "state": "off" } }, { @@ -365,15 +365,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json b/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json index 459212e84..60bbcba19 100644 --- a/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json +++ b/tests/data/devices/tz3000-mw1pqqqt-ts0003-0x0000004a.json @@ -888,15 +888,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -920,15 +920,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3000-okaz9tjs-ts011f.json b/tests/data/devices/tz3000-okaz9tjs-ts011f.json index 3f2e5cb49..96858ddab 100644 --- a/tests/data/devices/tz3000-okaz9tjs-ts011f.json +++ b/tests/data/devices/tz3000-okaz9tjs-ts011f.json @@ -452,16 +452,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json b/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json index 1a7a49988..d21b411d8 100644 --- a/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json +++ b/tests/data/devices/tz3000-p26flek3-ts0001-0x00000053.json @@ -340,15 +340,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "Off" + "state": "off" } }, { @@ -372,15 +372,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json b/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json index b2e86d711..3defc7f83 100644 --- a/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json +++ b/tests/data/devices/tz3000-sgb0xhwn-ts011f-0x00000050.json @@ -682,15 +682,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -714,15 +714,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json b/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json index b6dafd8c2..f16f48465 100644 --- a/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json +++ b/tests/data/devices/tz3000-tqlv4ug4-ts0001-0x00000048.json @@ -666,15 +666,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -698,15 +698,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json b/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json index 903059c65..cfd755a18 100644 --- a/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json +++ b/tests/data/devices/tz3000-typdpbpg-ts011f-0x10013607.json @@ -628,16 +628,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } }, { @@ -661,15 +661,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -693,15 +693,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json b/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json index 57e7a3771..dc55896de 100644 --- a/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json +++ b/tests/data/devices/tz3000-u3oupgdy-ts0004-0x00000050.json @@ -757,15 +757,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -789,15 +789,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json b/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json index 280df5f70..d8d6ddccf 100644 --- a/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json +++ b/tests/data/devices/tz3000-u4kojtqz-ts0002-0x10013607.json @@ -442,16 +442,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -475,16 +475,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/tz3000-w0qqde0g-ts011f.json b/tests/data/devices/tz3000-w0qqde0g-ts011f.json index b79edbd4a..457ecd650 100644 --- a/tests/data/devices/tz3000-w0qqde0g-ts011f.json +++ b/tests/data/devices/tz3000-w0qqde0g-ts011f.json @@ -470,15 +470,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -502,15 +502,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3000-wkr3jqmr-ts0004.json b/tests/data/devices/tz3000-wkr3jqmr-ts0004.json index 36d6d6b8a..2feabd668 100644 --- a/tests/data/devices/tz3000-wkr3jqmr-ts0004.json +++ b/tests/data/devices/tz3000-wkr3jqmr-ts0004.json @@ -780,15 +780,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -812,15 +812,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json index d481422e0..7891d79ff 100644 --- a/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json +++ b/tests/data/devices/tz3000-wn65ixz9-ts0001-0x00000051.json @@ -333,15 +333,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -365,15 +365,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/tz3000-xkap8wtb-ts000f.json b/tests/data/devices/tz3000-xkap8wtb-ts000f.json index f8ddb4688..6272991aa 100644 --- a/tests/data/devices/tz3000-xkap8wtb-ts000f.json +++ b/tests/data/devices/tz3000-xkap8wtb-ts000f.json @@ -527,16 +527,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "On" + "state": "on" } } ], diff --git a/tests/data/devices/tz3000-xxacnuab-ts0004.json b/tests/data/devices/tz3000-xxacnuab-ts0004.json index 9c4f13f53..0927c7832 100644 --- a/tests/data/devices/tz3000-xxacnuab-ts0004.json +++ b/tests/data/devices/tz3000-xxacnuab-ts0004.json @@ -744,15 +744,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "Off" + "state": "off" } } ], diff --git a/tests/data/devices/tz3000-zv6x8bt2-ts011f.json b/tests/data/devices/tz3000-zv6x8bt2-ts011f.json index be115d3b8..21acb2d74 100644 --- a/tests/data/devices/tz3000-zv6x8bt2-ts011f.json +++ b/tests/data/devices/tz3000-zv6x8bt2-ts011f.json @@ -630,15 +630,15 @@ "group_id": null, "enum": "TuyaBacklightMode", "options": [ - "Off", - "LightWhenOn", - "LightWhenOff" + "off", + "lightwhenon", + "lightwhenoff" ] }, "state": { "class_name": "TuyaBacklightModeSelectEntity", "available": true, - "state": "LightWhenOn" + "state": "lightwhenon" } }, { @@ -662,15 +662,15 @@ "group_id": null, "enum": "TuyaPowerOnState", "options": [ - "Off", - "On", - "LastState" + "off", + "on", + "laststate" ] }, "state": { "class_name": "TuyaPowerOnStateSelectEntity", "available": true, - "state": "LastState" + "state": "laststate" } } ], diff --git a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json index 1eb662659..1b2ce0be3 100644 --- a/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json +++ b/tests/data/devices/tz3210-bfwvfyx1-ts0505b.json @@ -478,16 +478,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json b/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json index e52168dba..cd401292c 100644 --- a/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json +++ b/tests/data/devices/tz3210-j4pdtz9v-ts0001-0x00000062.json @@ -318,15 +318,15 @@ "group_id": null, "enum": "FingerBotMode", "options": [ - "CLICK", - "SWITCH", - "PROGRAM" + "click", + "switch", + "program" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "SWITCH" + "state": "switch" } }, { @@ -350,8 +350,8 @@ "group_id": null, "enum": "FingerBotReverse", "options": [ - "UP ON", - "UP OFF" + "up_on", + "up_off" ] }, "state": { diff --git a/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json b/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json index 01eaa6d5e..e7100179f 100644 --- a/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json +++ b/tests/data/devices/tz3210-r5afgmkl-ts0505b-0x10013607.json @@ -554,16 +554,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/tze200-1n2zev06-ts0601.json b/tests/data/devices/tze200-1n2zev06-ts0601.json index 69195e7d9..95287e976 100644 --- a/tests/data/devices/tze200-1n2zev06-ts0601.json +++ b/tests/data/devices/tze200-1n2zev06-ts0601.json @@ -228,10 +228,10 @@ "group_id": null, "enum": "TuyaValveWeatherDelay", "options": [ - "Disabled", - "Delayed 24h", - "Delayed 48h", - "Delayed 72h" + "disabled", + "delayed_24h", + "delayed_48h", + "delayed_72h" ] }, "state": { diff --git a/tests/data/devices/tze200-2aaelwxk-ts0225.json b/tests/data/devices/tze200-2aaelwxk-ts0225.json index c19814853..b4acba3fe 100644 --- a/tests/data/devices/tze200-2aaelwxk-ts0225.json +++ b/tests/data/devices/tze200-2aaelwxk-ts0225.json @@ -1111,12 +1111,12 @@ "group_id": null, "enum": "TuyaPresenceStateV02", "options": [ - "Unoccupied", - "Large", - "Medium", - "Small", - "Huge", - "Gigantic" + "unoccupied", + "large", + "medium", + "small", + "huge", + "gigantic" ] }, "state": { diff --git a/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json b/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json index f0514577f..7ce354f67 100644 --- a/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json +++ b/tests/data/devices/tze200-3towulqd-ts0601-0x00000046.json @@ -319,16 +319,16 @@ "group_id": null, "enum": "TuyaMotionFadeTime", "options": [ - " 10 seconds", - " 30 seconds", - " 60 seconds", - " 120 seconds" + "_10_seconds", + "_30_seconds", + "_60_seconds", + "_120_seconds" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": " 10 seconds" + "state": "_10_seconds" } }, { @@ -352,15 +352,15 @@ "group_id": null, "enum": "TuyaMotionPresenceSensitivity", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Medium" + "state": "medium" } } ], diff --git a/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json b/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json index 6bfe21592..68775a3b9 100644 --- a/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-7ytb3h8u-ts0601-0x00000048.json @@ -379,14 +379,14 @@ "group_id": null, "enum": "GiexIrrigationMode", "options": [ - "Duration", - "Capacity" + "duration", + "capacity" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Duration" + "state": "duration" } }, { @@ -410,10 +410,10 @@ "group_id": null, "enum": "GiexIrrigationWeatherDelay", "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" + "nodelay", + "twentyfourhourdelay", + "fortyeighthourdelay", + "seventytwohourdelay" ] }, "state": { diff --git a/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json b/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json index 8d9275bdc..dc6b0112e 100644 --- a/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-81isopgh-ts0601-0x00000048.json @@ -314,10 +314,10 @@ "group_id": null, "enum": "TuyaValveWeatherDelay", "options": [ - "Disabled", - "Delayed 24h", - "Delayed 48h", - "Delayed 72h" + "disabled", + "delayed_24h", + "delayed_48h", + "delayed_72h" ] }, "state": { diff --git a/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json b/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json index 84fb46c82..567d91a68 100644 --- a/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json +++ b/tests/data/devices/tze200-9caxna4s-ts0301-0x00000049.json @@ -412,7 +412,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json b/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json index 9333d4def..90e79b45e 100644 --- a/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-a7sghmms-ts0601-0x00000048.json @@ -385,14 +385,14 @@ "group_id": null, "enum": "GiexIrrigationMode", "options": [ - "Duration", - "Capacity" + "duration", + "capacity" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Duration" + "state": "duration" } }, { @@ -416,16 +416,16 @@ "group_id": null, "enum": "GiexIrrigationWeatherDelay", "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" + "nodelay", + "twentyfourhourdelay", + "fortyeighthourdelay", + "seventytwohourdelay" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "NoDelay" + "state": "nodelay" } } ], diff --git a/tests/data/devices/tze200-a7sghmms-ts0601.json b/tests/data/devices/tze200-a7sghmms-ts0601.json index b500b5e6e..b50a57dfc 100644 --- a/tests/data/devices/tze200-a7sghmms-ts0601.json +++ b/tests/data/devices/tze200-a7sghmms-ts0601.json @@ -305,8 +305,8 @@ "group_id": null, "enum": "GiexIrrigationMode", "options": [ - "Duration", - "Capacity" + "duration", + "capacity" ] }, "state": { @@ -336,10 +336,10 @@ "group_id": null, "enum": "GiexIrrigationWeatherDelay", "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" + "nodelay", + "twentyfourhourdelay", + "fortyeighthourdelay", + "seventytwohourdelay" ] }, "state": { diff --git a/tests/data/devices/tze200-aoclfnxz-ts0601.json b/tests/data/devices/tze200-aoclfnxz-ts0601.json index 8752d91c4..f2bceec34 100644 --- a/tests/data/devices/tze200-aoclfnxz-ts0601.json +++ b/tests/data/devices/tze200-aoclfnxz-ts0601.json @@ -362,17 +362,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json b/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json index 9f733bf42..149bf189f 100644 --- a/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-cirvgep4-ts0601-0x00000048.json @@ -206,8 +206,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze200-cpmgn2cf-ts0601.json b/tests/data/devices/tze200-cpmgn2cf-ts0601.json index f20170553..60a4e74d8 100644 --- a/tests/data/devices/tze200-cpmgn2cf-ts0601.json +++ b/tests/data/devices/tze200-cpmgn2cf-ts0601.json @@ -1322,17 +1322,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json b/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json index 17f739b35..b67937105 100644 --- a/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json +++ b/tests/data/devices/tze200-crq3r3la-ck-bl702-mws-01-7016.json @@ -557,12 +557,12 @@ "group_id": null, "enum": "TuyaPresenceStateV02", "options": [ - "Unoccupied", - "Large", - "Medium", - "Small", - "Huge", - "Gigantic" + "unoccupied", + "large", + "medium", + "small", + "huge", + "gigantic" ] }, "state": { diff --git a/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json b/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json index f3bc13125..d35f6e14d 100644 --- a/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json +++ b/tests/data/devices/tze200-gjldowol-ts0601-0x00000050.json @@ -279,9 +279,9 @@ "group_id": null, "enum": "TuyaSensitivityMode", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { diff --git a/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json b/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json index a4659347f..64a007ad5 100644 --- a/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json +++ b/tests/data/devices/tze200-hhrtiq0x-ts0601-0x00000055.json @@ -316,17 +316,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tze200-jva8ink8-ts0601.json b/tests/data/devices/tze200-jva8ink8-ts0601.json index c41b9fe10..6dd820ce8 100644 --- a/tests/data/devices/tze200-jva8ink8-ts0601.json +++ b/tests/data/devices/tze200-jva8ink8-ts0601.json @@ -536,7 +536,7 @@ "state": { "class_name": "EnumSensor", "available": true, - "state": "CheckSuccess" + "state": "checksuccess" } } ], diff --git a/tests/data/devices/tze200-kb5noeto-ts0601.json b/tests/data/devices/tze200-kb5noeto-ts0601.json index 5a0afd1b4..bf6f2b99d 100644 --- a/tests/data/devices/tze200-kb5noeto-ts0601.json +++ b/tests/data/devices/tze200-kb5noeto-ts0601.json @@ -443,9 +443,9 @@ "group_id": null, "enum": "TuyaMotionDetectionMode", "options": [ - "Only PIR", - "PIR and radar", - "Only radar" + "only_pir", + "pir_and_radar", + "only_radar" ] }, "state": { diff --git a/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json b/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json index 9f99216e2..46cd84727 100644 --- a/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-locansqn-ts0601-0x00000048.json @@ -559,14 +559,14 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Celsius" + "state": "celsius" } } ], @@ -743,7 +743,7 @@ "state": { "class_name": "EnumSensor", "available": true, - "state": "Canceled" + "state": "canceled" } }, { @@ -771,7 +771,7 @@ "state": { "class_name": "EnumSensor", "available": true, - "state": "Canceled" + "state": "canceled" } } ], diff --git a/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json b/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json index fd6a9c7a5..143eca46c 100644 --- a/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json +++ b/tests/data/devices/tze200-mudxchsu-ts0601-0x00000045.json @@ -915,17 +915,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tze200-qrztc3ev-ts0601.json b/tests/data/devices/tze200-qrztc3ev-ts0601.json index 481b4469f..2448a94b8 100644 --- a/tests/data/devices/tze200-qrztc3ev-ts0601.json +++ b/tests/data/devices/tze200-qrztc3ev-ts0601.json @@ -434,8 +434,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json b/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json index 41ed04051..8bf229c71 100644 --- a/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json +++ b/tests/data/devices/tze200-sur6q7ko-ts0601-0x00000045.json @@ -802,17 +802,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tze200-t1blo2bj-ts0601.json b/tests/data/devices/tze200-t1blo2bj-ts0601.json index 8ce243259..3c7f39bd9 100644 --- a/tests/data/devices/tze200-t1blo2bj-ts0601.json +++ b/tests/data/devices/tze200-t1blo2bj-ts0601.json @@ -228,24 +228,24 @@ "group_id": null, "enum": "NeoAlarmMelody18", "options": [ - "Melody 01", - "Melody 02", - "Melody 03", - "Melody 04", - "Melody 05", - "Melody 06", - "Melody 07", - "Melody 08", - "Melody 09", - "Melody 10", - "Melody 11", - "Melody 12", - "Melody 13", - "Melody 14", - "Melody 15", - "Melody 16", - "Melody 17", - "Melody 18" + "melody_01", + "melody_02", + "melody_03", + "melody_04", + "melody_05", + "melody_06", + "melody_07", + "melody_08", + "melody_09", + "melody_10", + "melody_11", + "melody_12", + "melody_13", + "melody_14", + "melody_15", + "melody_16", + "melody_17", + "melody_18" ] }, "state": { @@ -275,9 +275,9 @@ "group_id": null, "enum": "NeoAlarmVolume", "options": [ - "Low", - "Medium", - "High" + "low", + "medium", + "high" ] }, "state": { diff --git a/tests/data/devices/tze200-viy9ihs7-ts0601.json b/tests/data/devices/tze200-viy9ihs7-ts0601.json index 82a66bf5b..44fcdbca9 100644 --- a/tests/data/devices/tze200-viy9ihs7-ts0601.json +++ b/tests/data/devices/tze200-viy9ihs7-ts0601.json @@ -346,10 +346,10 @@ "group_id": null, "enum": "BacklightMode", "options": [ - "Off", - "Low", - "Medium", - "High" + "off", + "low", + "medium", + "high" ] }, "state": { @@ -379,9 +379,9 @@ "group_id": null, "enum": "PresetModeV03", "options": [ - "Auto", - "Manual", - "Temporary Manual" + "auto", + "manual", + "temporary_manual" ] }, "state": { @@ -411,9 +411,9 @@ "group_id": null, "enum": "SensorMode", "options": [ - "Air", - "Floor", - "Both" + "air", + "floor", + "both" ] }, "state": { @@ -443,10 +443,10 @@ "group_id": null, "enum": "WorkingDayV01", "options": [ - "Disabled", - "Six One", - "Five Two", - "Seven" + "disabled", + "six_one", + "five_two", + "seven" ] }, "state": { diff --git a/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json b/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json index 335790184..74a474611 100644 --- a/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json +++ b/tests/data/devices/tze200-vvmbj46n-ts0601-0x00000048.json @@ -453,8 +453,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze200-yjjdcqsq-ts0601.json b/tests/data/devices/tze200-yjjdcqsq-ts0601.json index c4d6eef42..5214c9858 100644 --- a/tests/data/devices/tze200-yjjdcqsq-ts0601.json +++ b/tests/data/devices/tze200-yjjdcqsq-ts0601.json @@ -197,8 +197,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze200-yojqa8xn-ts0601.json b/tests/data/devices/tze200-yojqa8xn-ts0601.json index 5b3c3098e..ef64398b9 100644 --- a/tests/data/devices/tze200-yojqa8xn-ts0601.json +++ b/tests/data/devices/tze200-yojqa8xn-ts0601.json @@ -305,11 +305,11 @@ "group_id": null, "enum": "TuyaSirenRingtone", "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05" + "ringtone_01", + "ringtone_02", + "ringtone_03", + "ringtone_04", + "ringtone_05" ] }, "state": { diff --git a/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json b/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json index cc323bcc2..2a7aafa54 100644 --- a/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-1youk3hj-ts0601-0x0000004a.json @@ -401,8 +401,8 @@ "group_id": null, "enum": "TuyaMotionWorkMode", "options": [ - "Manual", - "Auto" + "manual", + "auto" ] }, "state": { diff --git a/tests/data/devices/tze204-7ytb3h8u-ts0601.json b/tests/data/devices/tze204-7ytb3h8u-ts0601.json index e9d27d552..434dcd1d5 100644 --- a/tests/data/devices/tze204-7ytb3h8u-ts0601.json +++ b/tests/data/devices/tze204-7ytb3h8u-ts0601.json @@ -427,14 +427,14 @@ "group_id": null, "enum": "GiexIrrigationMode", "options": [ - "Duration", - "Capacity" + "duration", + "capacity" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Duration" + "state": "duration" } }, { @@ -458,10 +458,10 @@ "group_id": null, "enum": "GiexIrrigationWeatherDelay", "options": [ - "NoDelay", - "TwentyFourHourDelay", - "FortyEightHourDelay", - "SeventyTwoHourDelay" + "nodelay", + "twentyfourhourdelay", + "fortyeighthourdelay", + "seventytwohourdelay" ] }, "state": { diff --git a/tests/data/devices/tze204-9yapgbuv-ts0601.json b/tests/data/devices/tze204-9yapgbuv-ts0601.json index b9a1d016f..31f345344 100644 --- a/tests/data/devices/tze204-9yapgbuv-ts0601.json +++ b/tests/data/devices/tze204-9yapgbuv-ts0601.json @@ -190,8 +190,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze204-chbyv06x-ts0601.json b/tests/data/devices/tze204-chbyv06x-ts0601.json index 8b95e406e..ad2b4561e 100644 --- a/tests/data/devices/tze204-chbyv06x-ts0601.json +++ b/tests/data/devices/tze204-chbyv06x-ts0601.json @@ -305,11 +305,11 @@ "group_id": null, "enum": "TuyaSirenRingtone", "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05" + "ringtone_01", + "ringtone_02", + "ringtone_03", + "ringtone_04", + "ringtone_05" ] }, "state": { diff --git a/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json b/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json index 6e96a1c13..b8af697dd 100644 --- a/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-cirvgep4-ts0601-0x00000049.json @@ -215,8 +215,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze204-dtzziy1e-ts0601.json b/tests/data/devices/tze204-dtzziy1e-ts0601.json index bb946e398..922888090 100644 --- a/tests/data/devices/tze204-dtzziy1e-ts0601.json +++ b/tests/data/devices/tze204-dtzziy1e-ts0601.json @@ -482,8 +482,8 @@ "group_id": null, "enum": "TuyaBreakerMode", "options": [ - "Standard", - "Local" + "standard", + "local" ] }, "state": { @@ -513,8 +513,8 @@ "group_id": null, "enum": "TuyaBreakerPolarity", "options": [ - "NC", - "NO" + "nc", + "no" ] }, "state": { @@ -544,8 +544,8 @@ "group_id": null, "enum": "TuyaBreakerStatus", "options": [ - "Off", - "On" + "off", + "on" ] }, "state": { @@ -575,10 +575,10 @@ "group_id": null, "enum": "TuyaMotionSensorMode", "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" + "on", + "off", + "occupied", + "unoccupied" ] }, "state": { @@ -608,8 +608,8 @@ "group_id": null, "enum": "TuyaStatusIndication", "options": [ - "Off", - "On" + "off", + "on" ] }, "state": { diff --git a/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json b/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json index 42db989ec..f245940b4 100644 --- a/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-gops3slb-ts0601-0x0000004a.json @@ -437,10 +437,10 @@ "group_id": null, "enum": "BacklightMode", "options": [ - "Off", - "Low", - "Medium", - "High" + "off", + "low", + "medium", + "high" ] }, "state": { @@ -470,9 +470,9 @@ "group_id": null, "enum": "PresetModeV02", "options": [ - "Manual", - "Auto", - "Temporary Manual" + "manual", + "auto", + "temporary_manual" ] }, "state": { @@ -502,9 +502,9 @@ "group_id": null, "enum": "SensorMode", "options": [ - "Air", - "Floor", - "Both" + "air", + "floor", + "both" ] }, "state": { @@ -534,10 +534,10 @@ "group_id": null, "enum": "WorkingDayV02", "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" + "disabled", + "five_two", + "six_one", + "seven" ] }, "state": { diff --git a/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json b/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json index 398626af3..b6a4315de 100644 --- a/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-iaeejhvf-ts0601-0x0000004a.json @@ -989,8 +989,8 @@ "group_id": null, "enum": "TuyaBreakerMode", "options": [ - "Standard", - "Local" + "standard", + "local" ] }, "state": { @@ -1020,8 +1020,8 @@ "group_id": null, "enum": "TuyaBreakerPolarity", "options": [ - "NC", - "NO" + "nc", + "no" ] }, "state": { @@ -1051,8 +1051,8 @@ "group_id": null, "enum": "TuyaBreakerStatus", "options": [ - "Off", - "On" + "off", + "on" ] }, "state": { @@ -1082,10 +1082,10 @@ "group_id": null, "enum": "TuyaMotionSensorMode", "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" + "on", + "off", + "occupied", + "unoccupied" ] }, "state": { @@ -1115,8 +1115,8 @@ "group_id": null, "enum": "TuyaStatusIndication", "options": [ - "Off", - "On" + "off", + "on" ] }, "state": { diff --git a/tests/data/devices/tze204-k7mfgaen-ts0601.json b/tests/data/devices/tze204-k7mfgaen-ts0601.json index 9cf2e565c..d3af3a4a9 100644 --- a/tests/data/devices/tze204-k7mfgaen-ts0601.json +++ b/tests/data/devices/tze204-k7mfgaen-ts0601.json @@ -276,10 +276,10 @@ "group_id": null, "enum": "TuyaSirenState", "options": [ - "Sound", - "Light", - "Sound and light", - "Normal" + "sound", + "light", + "sound_and_light", + "normal" ] }, "state": { @@ -309,19 +309,19 @@ "group_id": null, "enum": "TuyaSirenRingtoneV02", "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03", - "Ringtone 04", - "Ringtone 05", - "Ringtone 06", - "Ringtone 07", - "Ringtone 08", - "Door", - "Water", - "Temperature", - "Entered", - "Left" + "ringtone_01", + "ringtone_02", + "ringtone_03", + "ringtone_04", + "ringtone_05", + "ringtone_06", + "ringtone_07", + "ringtone_08", + "door", + "water", + "temperature", + "entered", + "left" ] }, "state": { @@ -351,10 +351,10 @@ "group_id": null, "enum": "TuyaAlarmVolume", "options": [ - "Low", - "Medium", - "High", - "Mute" + "low", + "medium", + "high", + "mute" ] }, "state": { diff --git a/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json b/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json index 0905755e1..c0fc72534 100644 --- a/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-lpedvtvr-ts0601-0x0000004a.json @@ -404,17 +404,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json index 0c36cc247..14eea1c24 100644 --- a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004a.json @@ -569,9 +569,9 @@ "group_id": null, "enum": "TuyaDisplayBrightness", "options": [ - "High", - "Medium", - "Low" + "high", + "medium", + "low" ] }, "state": { @@ -601,8 +601,8 @@ "group_id": null, "enum": "TuyaDisplayOrientation", "options": [ - "Up", - "Down" + "up", + "down" ] }, "state": { @@ -632,8 +632,8 @@ "group_id": null, "enum": "TuyaHysteresis", "options": [ - "Comfort", - "Eco" + "comfort", + "eco" ] }, "state": { @@ -663,9 +663,9 @@ "group_id": null, "enum": "TuyaMotorThrust", "options": [ - "Strong", - "Middle", - "Weak" + "strong", + "middle", + "weak" ] }, "state": { @@ -695,10 +695,10 @@ "group_id": null, "enum": "TuyaPresetMode", "options": [ - "Eco", - "Auto", - "Off", - "Heat" + "eco", + "auto", + "off", + "heat" ] }, "state": { diff --git a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json index b8405dd5f..cf03db10c 100644 --- a/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json +++ b/tests/data/devices/tze204-ltwbm23f-ts0601-0x0000004e.json @@ -659,15 +659,15 @@ "group_id": null, "enum": "TuyaDisplayBrightness", "options": [ - "High", - "Medium", - "Low" + "high", + "medium", + "low" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "High" + "state": "high" } }, { @@ -691,14 +691,14 @@ "group_id": null, "enum": "TuyaDisplayOrientation", "options": [ - "Up", - "Down" + "up", + "down" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Up" + "state": "up" } }, { @@ -722,14 +722,14 @@ "group_id": null, "enum": "TuyaHysteresis", "options": [ - "Comfort", - "Eco" + "comfort", + "eco" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Comfort" + "state": "comfort" } }, { @@ -753,15 +753,15 @@ "group_id": null, "enum": "TuyaMotorThrust", "options": [ - "Strong", - "Middle", - "Weak" + "strong", + "middle", + "weak" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Weak" + "state": "weak" } }, { @@ -785,16 +785,16 @@ "group_id": null, "enum": "TuyaPresetMode", "options": [ - "Eco", - "Auto", - "Off", - "Heat" + "eco", + "auto", + "off", + "heat" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Heat" + "state": "heat" } } ], diff --git a/tests/data/devices/tze204-lzriup1j-ts0601.json b/tests/data/devices/tze204-lzriup1j-ts0601.json index aa664b110..2fa8d00be 100644 --- a/tests/data/devices/tze204-lzriup1j-ts0601.json +++ b/tests/data/devices/tze204-lzriup1j-ts0601.json @@ -369,10 +369,10 @@ "group_id": null, "enum": "BacklightMode", "options": [ - "Off", - "Low", - "Medium", - "High" + "off", + "low", + "medium", + "high" ] }, "state": { @@ -402,9 +402,9 @@ "group_id": null, "enum": "PresetModeV02", "options": [ - "Manual", - "Auto", - "Temporary Manual" + "manual", + "auto", + "temporary_manual" ] }, "state": { @@ -434,9 +434,9 @@ "group_id": null, "enum": "SensorMode", "options": [ - "Air", - "Floor", - "Both" + "air", + "floor", + "both" ] }, "state": { @@ -466,10 +466,10 @@ "group_id": null, "enum": "WorkingDayV02", "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" + "disabled", + "five_two", + "six_one", + "seven" ] }, "state": { diff --git a/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json b/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json index 9a80ca388..7105314cc 100644 --- a/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-mtoaryre-ts0601-0x0000004a.json @@ -512,8 +512,8 @@ "group_id": null, "enum": "TuyaBreakerMode", "options": [ - "Standard", - "Local" + "standard", + "local" ] }, "state": { @@ -543,8 +543,8 @@ "group_id": null, "enum": "TuyaBreakerPolarity", "options": [ - "NC", - "NO" + "nc", + "no" ] }, "state": { @@ -574,8 +574,8 @@ "group_id": null, "enum": "TuyaBreakerStatus", "options": [ - "Off", - "On" + "off", + "on" ] }, "state": { @@ -605,10 +605,10 @@ "group_id": null, "enum": "TuyaMotionSensorMode", "options": [ - "On", - "Off", - "Occupied", - "Unoccupied" + "on", + "off", + "occupied", + "unoccupied" ] }, "state": { @@ -638,8 +638,8 @@ "group_id": null, "enum": "TuyaStatusIndication", "options": [ - "Off", - "On" + "off", + "on" ] }, "state": { diff --git a/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json b/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json index 9f9a952c5..6968eb953 100644 --- a/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-nlrfgpny-ts0601-0x00000049.json @@ -344,10 +344,10 @@ "group_id": null, "enum": "TuyaSirenState", "options": [ - "Sound", - "Light", - "Sound and light", - "Normal" + "sound", + "light", + "sound_and_light", + "normal" ] }, "state": { @@ -377,9 +377,9 @@ "group_id": null, "enum": "TuyaSirenRingtone", "options": [ - "Ringtone 01", - "Ringtone 02", - "Ringtone 03" + "ringtone_01", + "ringtone_02", + "ringtone_03" ] }, "state": { diff --git a/tests/data/devices/tze204-p3lqqy2r-ts0601.json b/tests/data/devices/tze204-p3lqqy2r-ts0601.json index 9e4fb6fb4..9d9d6323b 100644 --- a/tests/data/devices/tze204-p3lqqy2r-ts0601.json +++ b/tests/data/devices/tze204-p3lqqy2r-ts0601.json @@ -358,9 +358,9 @@ "group_id": null, "enum": "PresetModeV01", "options": [ - "Manual", - "Home", - "Away" + "manual", + "home", + "away" ] }, "state": { @@ -390,11 +390,11 @@ "group_id": null, "enum": "RegulatorPeriod", "options": [ - " 15 min", - " 30 min", - " 45 min", - " 60 min", - " 90 min" + "_15_min", + "_30_min", + "_45_min", + "_60_min", + "_90_min" ] }, "state": { @@ -424,9 +424,9 @@ "group_id": null, "enum": "SensorMode", "options": [ - "Air", - "Floor", - "Both" + "air", + "floor", + "both" ] }, "state": { @@ -456,8 +456,8 @@ "group_id": null, "enum": "ThermostatMode", "options": [ - "Regulator", - "Thermostat" + "regulator", + "thermostat" ] }, "state": { diff --git a/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json b/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json index 5a04980ed..b48888782 100644 --- a/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-qyr2m29i-ts0601-0x0000004a.json @@ -526,9 +526,9 @@ "group_id": null, "enum": "TuyaDisplayBrightness", "options": [ - "High", - "Medium", - "Low" + "high", + "medium", + "low" ] }, "state": { @@ -558,8 +558,8 @@ "group_id": null, "enum": "TuyaDisplayOrientation", "options": [ - "Up", - "Down" + "up", + "down" ] }, "state": { @@ -589,8 +589,8 @@ "group_id": null, "enum": "TuyaHysteresis", "options": [ - "Comfort", - "Eco" + "comfort", + "eco" ] }, "state": { @@ -620,9 +620,9 @@ "group_id": null, "enum": "TuyaMotorThrust", "options": [ - "Strong", - "Middle", - "Weak" + "strong", + "middle", + "weak" ] }, "state": { @@ -652,10 +652,10 @@ "group_id": null, "enum": "TuyaPresetMode", "options": [ - "Eco", - "Auto", - "Off", - "Heat" + "eco", + "auto", + "off", + "heat" ] }, "state": { diff --git a/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json b/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json index e092f81ac..e75ad9f81 100644 --- a/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json +++ b/tests/data/devices/tze204-rtrmfadk-ts0601-0x00000049.json @@ -496,8 +496,8 @@ "group_id": null, "enum": "TuyaThermostatEcoMode", "options": [ - "Comfort", - "Eco" + "comfort", + "eco" ] }, "state": { diff --git a/tests/data/devices/tze204-rtrmfadk-ts0601.json b/tests/data/devices/tze204-rtrmfadk-ts0601.json index 59464f625..ddf0b2ee8 100644 --- a/tests/data/devices/tze204-rtrmfadk-ts0601.json +++ b/tests/data/devices/tze204-rtrmfadk-ts0601.json @@ -538,14 +538,14 @@ "group_id": null, "enum": "TuyaThermostatEcoMode", "options": [ - "Comfort", - "Eco" + "comfort", + "eco" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Eco" + "state": "eco" } } ], diff --git a/tests/data/devices/tze204-upagmta9-ts0601.json b/tests/data/devices/tze204-upagmta9-ts0601.json index dc6a4b4e4..c021b37f1 100644 --- a/tests/data/devices/tze204-upagmta9-ts0601.json +++ b/tests/data/devices/tze204-upagmta9-ts0601.json @@ -221,14 +221,14 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Celsius" + "state": "celsius" } } ], diff --git a/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json b/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json index a8097cbab..a64bc511d 100644 --- a/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xalsoe3m-ts0601-0x0000004a.json @@ -741,17 +741,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json b/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json index 3603ec9f3..bdbfa0d34 100644 --- a/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json +++ b/tests/data/devices/tze204-xnbkhhdr-ts0601-0x0000004a.json @@ -353,10 +353,10 @@ "group_id": null, "enum": "BacklightMode", "options": [ - "Off", - "Low", - "Medium", - "High" + "off", + "low", + "medium", + "high" ] }, "state": { @@ -386,9 +386,9 @@ "group_id": null, "enum": "PresetModeV03", "options": [ - "Auto", - "Manual", - "Temporary Manual" + "auto", + "manual", + "temporary_manual" ] }, "state": { @@ -418,9 +418,9 @@ "group_id": null, "enum": "SensorMode", "options": [ - "Air", - "Floor", - "Both" + "air", + "floor", + "both" ] }, "state": { @@ -450,10 +450,10 @@ "group_id": null, "enum": "WorkingDayV02", "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" + "disabled", + "five_two", + "six_one", + "seven" ] }, "state": { diff --git a/tests/data/devices/tze204-yjjdcqsq-ts0601.json b/tests/data/devices/tze204-yjjdcqsq-ts0601.json index dd856f25f..f86cc2289 100644 --- a/tests/data/devices/tze204-yjjdcqsq-ts0601.json +++ b/tests/data/devices/tze204-yjjdcqsq-ts0601.json @@ -217,8 +217,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json b/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json index 31a199c53..29197c318 100644 --- a/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json +++ b/tests/data/devices/tze284-3mzb0sdz-ts0601-0x00000050.json @@ -366,8 +366,8 @@ "group_id": null, "enum": "MotorDirection", "options": [ - "Forward", - "Back" + "forward", + "back" ] }, "state": { diff --git a/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json b/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json index fe5982c50..ec148baee 100644 --- a/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-kyyu8rbj-ts0601-0x0000004d.json @@ -457,9 +457,9 @@ "group_id": null, "enum": "TuyaLiquidState", "options": [ - "Normal", - "Low", - "High" + "normal", + "low", + "high" ] }, "state": { diff --git a/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json b/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json index 8d570526e..27b8cc3fe 100644 --- a/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-upagmta9-ts0601-0x0000004d.json @@ -203,8 +203,8 @@ "group_id": null, "enum": "TuyaTempUnitConvert", "options": [ - "Celsius", - "Fahrenheit" + "celsius", + "fahrenheit" ] }, "state": { diff --git a/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json b/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json index cd521c34e..234f21201 100644 --- a/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json +++ b/tests/data/devices/tze284-xnbkhhdr-ts0601-0x0000004d.json @@ -468,16 +468,16 @@ "group_id": null, "enum": "BacklightMode", "options": [ - "Off", - "Low", - "Medium", - "High" + "off", + "low", + "medium", + "high" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "High" + "state": "high" } }, { @@ -501,15 +501,15 @@ "group_id": null, "enum": "PresetModeV03", "options": [ - "Auto", - "Manual", - "Temporary Manual" + "auto", + "manual", + "temporary_manual" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Manual" + "state": "manual" } }, { @@ -533,9 +533,9 @@ "group_id": null, "enum": "SensorMode", "options": [ - "Air", - "Floor", - "Both" + "air", + "floor", + "both" ] }, "state": { @@ -565,16 +565,16 @@ "group_id": null, "enum": "WorkingDayV02", "options": [ - "Disabled", - "Five Two", - "Six One", - "Seven" + "disabled", + "five_two", + "six_one", + "seven" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Disabled" + "state": "disabled" } } ], diff --git a/tests/data/devices/ubisys-s1-5501-0x02600460.json b/tests/data/devices/ubisys-s1-5501-0x02600460.json index a0ceaf0a9..bfe30609f 100644 --- a/tests/data/devices/ubisys-s1-5501-0x02600460.json +++ b/tests/data/devices/ubisys-s1-5501-0x02600460.json @@ -755,16 +755,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } }, { @@ -788,15 +788,15 @@ "group_id": null, "enum": "InputMode", "options": [ - "Toggle", - "Toggle switch", - "On off switch" + "toggle", + "toggle_switch", + "on_off_switch" ] }, "state": { "class_name": "ZCLEnumSelectEntity", "available": true, - "state": "Toggle" + "state": "toggle" } } ], diff --git a/tests/data/devices/uiot-uiot-windowcovring2-0402.json b/tests/data/devices/uiot-uiot-windowcovring2-0402.json index 90c73bf5e..951cea695 100644 --- a/tests/data/devices/uiot-uiot-windowcovring2-0402.json +++ b/tests/data/devices/uiot-uiot-windowcovring2-0402.json @@ -679,7 +679,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } }, { @@ -707,7 +707,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } }, { @@ -735,7 +735,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/yooksmart-d10110-0x12046780.json b/tests/data/devices/yooksmart-d10110-0x12046780.json index b5c021583..14b2163f7 100644 --- a/tests/data/devices/yooksmart-d10110-0x12046780.json +++ b/tests/data/devices/yooksmart-d10110-0x12046780.json @@ -418,7 +418,7 @@ "state": { "class_name": "WindowCoveringTypeSensor", "available": true, - "state": "Rollershade" + "state": "rollershade" } } ], diff --git a/tests/data/devices/zbeacon-ts0001.json b/tests/data/devices/zbeacon-ts0001.json index d71c4c778..3e72652b1 100644 --- a/tests/data/devices/zbeacon-ts0001.json +++ b/tests/data/devices/zbeacon-ts0001.json @@ -284,16 +284,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "PreviousValue" + "state": "previousvalue" } } ], diff --git a/tests/data/devices/zbeacon-ts0505.json b/tests/data/devices/zbeacon-ts0505.json index 77a5f7c99..212df231e 100644 --- a/tests/data/devices/zbeacon-ts0505.json +++ b/tests/data/devices/zbeacon-ts0505.json @@ -563,16 +563,16 @@ "group_id": null, "enum": "StartUpOnOff", "options": [ - "Off", - "On", - "Toggle", - "PreviousValue" + "off", + "on", + "toggle", + "previousvalue" ] }, "state": { "class_name": "StartupOnOffSelectEntity", "available": true, - "state": "Toggle" + "state": "toggle" } } ], diff --git a/tests/data/devices/zen-within-zen-01-0x0000021f.json b/tests/data/devices/zen-within-zen-01-0x0000021f.json index 58296d63a..efd230b65 100644 --- a/tests/data/devices/zen-within-zen-01-0x0000021f.json +++ b/tests/data/devices/zen-within-zen-01-0x0000021f.json @@ -576,17 +576,17 @@ "group_id": null, "enum": "KeypadLockoutEnum", "options": [ - "Unlock", - "Lock1", - "Lock2", - "Lock3", - "Lock4" + "unlock", + "lock1", + "lock2", + "lock3", + "lock4" ] }, "state": { "class_name": "KeypadLockout", "available": true, - "state": "Unlock" + "state": "unlock" } } ], diff --git a/tests/test_discover.py b/tests/test_discover.py index edd36fb19..a5c7c9cc1 100644 --- a/tests/test_discover.py +++ b/tests/test_discover.py @@ -388,7 +388,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): ) assert ( power_source_entity.state["state"] - == BasicCluster.PowerSource.Mains_single_phase.name + == BasicCluster.PowerSource.Mains_single_phase.name.lower() ) hook_state_entity = get_entity( @@ -397,7 +397,7 @@ class FakeXiaomiAqaraDriverE1(XiaomiAqaraDriverE1): exact_entity_type=sensor.EnumSensor, qualifier_func=lambda e: e._enum == AqaraE1HookState, ) - assert hook_state_entity.state["state"] == AqaraE1HookState.Unlocked.name + assert hook_state_entity.state["state"] == AqaraE1HookState.Unlocked.name.lower() error_detected_entity = get_entity( zha_device, diff --git a/tests/test_select.py b/tests/test_select.py index 9e732f244..be9895052 100644 --- a/tests/test_select.py +++ b/tests/test_select.py @@ -63,20 +63,29 @@ async def test_select(zha_gateway: Gateway) -> None: entity = get_entity(zha_device, platform=Platform.SELECT, qualifier=select_name) assert entity.state["state"] is None # unknown in HA assert entity.info_object.options == [ - "Stop", - "Burglar", - "Fire", - "Emergency", - "Police Panic", - "Fire Panic", - "Emergency Panic", + "stop", + "burglar", + "fire", + "emergency", + "police_panic", + "fire_panic", + "emergency_panic", ] assert entity._enum == security.IasWd.Warning.WarningMode # change value from client - await entity.async_select_option(security.IasWd.Warning.WarningMode.Burglar.name) + await entity.async_select_option( + security.IasWd.Warning.WarningMode.Burglar.name.lower() + ) await zha_gateway.async_block_till_done() - assert entity.state["state"] == security.IasWd.Warning.WarningMode.Burglar.name + assert ( + entity.state["state"] == security.IasWd.Warning.WarningMode.Burglar.name.lower() + ) + + # Backwards compatibility: the previous spaced option format is still accepted + await entity.async_select_option("Police Panic") + await zha_gateway.async_block_till_done() + assert entity.state["state"] == "police_panic" class MotionSensitivityQuirk(CustomDevice): @@ -137,13 +146,13 @@ async def test_on_off_select_attribute_report(zha_gateway: Gateway) -> None: cluster = aqara_sensor.device.endpoints.get(1).opple_cluster entity = get_entity(aqara_sensor, platform=Platform.SELECT) - assert entity.state["state"] == AqaraMotionSensitivities.Medium.name + assert entity.state["state"] == AqaraMotionSensitivities.Medium.name.lower() # send attribute report from device await send_attributes_report( zha_gateway, cluster, {"motion_sensitivity": AqaraMotionSensitivities.Low} ) - assert entity.state["state"] == AqaraMotionSensitivities.Low.name + assert entity.state["state"] == AqaraMotionSensitivities.Low.name.lower() ( @@ -210,13 +219,13 @@ async def test_on_off_select_attribute_report_v2( ) # test that the state is in default medium state - assert entity.state["state"] == AqaraMotionSensitivities.Medium.name + assert entity.state["state"] == AqaraMotionSensitivities.Medium.name.lower() # send attribute report from device await send_attributes_report( zha_gateway, cluster, {"motion_sensitivity": AqaraMotionSensitivities.Low} ) - assert entity.state["state"] == AqaraMotionSensitivities.Low.name + assert entity.state["state"] == AqaraMotionSensitivities.Low.name.lower() assert entity._attr_entity_category == EntityCategory.CONFIG assert entity._attr_entity_registry_enabled_default is True @@ -239,10 +248,10 @@ async def test_on_off_select_attribute_report_v2( ), patch.object(cluster, "write_attributes", wraps=cluster.write_attributes), ): - await entity.async_select_option(AqaraMotionSensitivities.Medium.name) + await entity.async_select_option(AqaraMotionSensitivities.Medium.name.lower()) await zha_gateway.async_block_till_done() - assert entity.state["state"] == AqaraMotionSensitivities.Medium.name + assert entity.state["state"] == AqaraMotionSensitivities.Medium.name.lower() assert cluster.write_attributes.call_count == 1 assert cluster.write_attributes.call_args == call( {"motion_sensitivity": AqaraMotionSensitivities.Medium}, @@ -271,14 +280,16 @@ async def test_non_zcl_select_state_restoration(zha_gateway: Gateway) -> None: assert entity.state["state"] is None entity.restore_external_state_attributes( - state=security.IasWd.Warning.WarningMode.Burglar.name + state=security.IasWd.Warning.WarningMode.Burglar.name.lower() + ) + assert ( + entity.state["state"] == security.IasWd.Warning.WarningMode.Burglar.name.lower() ) - assert entity.state["state"] == security.IasWd.Warning.WarningMode.Burglar.name entity.restore_external_state_attributes( - state=security.IasWd.Warning.WarningMode.Fire.name + state=security.IasWd.Warning.WarningMode.Fire.name.lower() ) - assert entity.state["state"] == security.IasWd.Warning.WarningMode.Fire.name + assert entity.state["state"] == security.IasWd.Warning.WarningMode.Fire.name.lower() async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> None: @@ -296,8 +307,8 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No platform=Platform.SELECT, qualifier="switchable_white", ) - assert entity.state["state"] == "Warm white" - assert entity.info_object.options == ["Warm white", "Cool white"] + assert entity.state["state"] == "warm_white" + assert entity.info_object.options == ["warm_white", "cool_white"] # send attribute report from device await send_attributes_report( @@ -305,7 +316,7 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No cluster, {"switchable_white": BegaColorTemperatureChannel.Cool_white}, ) - assert entity.state["state"] == "Cool white" + assert entity.state["state"] == "cool_white" # test selecting an option Write_Attributes_rsp = foundation.GENERAL_COMMANDS[ @@ -325,15 +336,24 @@ async def test_bega_color_temperature_channel_select(zha_gateway: Gateway) -> No ), patch.object(cluster, "write_attributes", wraps=cluster.write_attributes), ): - await entity.async_select_option("Warm white") + await entity.async_select_option("warm_white") await zha_gateway.async_block_till_done() - assert entity.state["state"] == "Warm white" + assert entity.state["state"] == "warm_white" assert cluster.write_attributes.call_count == 1 assert cluster.write_attributes.call_args == call( {"switchable_white": BegaColorTemperatureChannel.Warm_white}, manufacturer=UNDEFINED, ) + # Backwards compatibility: the previous spaced option format is still accepted + cluster.write_attributes.reset_mock() + await entity.async_select_option("Cool white") + await zha_gateway.async_block_till_done() + assert cluster.write_attributes.call_args == call( + {"switchable_white": BegaColorTemperatureChannel.Cool_white}, + manufacturer=UNDEFINED, + ) + @pytest.mark.parametrize( ("temp_1", "temp_2"), diff --git a/tests/test_sensor.py b/tests/test_sensor.py index 1759f2edd..43e4b39db 100644 --- a/tests/test_sensor.py +++ b/tests/test_sensor.py @@ -446,7 +446,7 @@ async def async_test_setpoint_change_source( cluster, {hvac.Thermostat.AttributeDefs.setpoint_change_source.id: 0x01}, ) - assert entity.state["state"] == "Schedule" + assert entity.state["state"] == "schedule" async def async_test_pi_heating_demand( @@ -2102,7 +2102,7 @@ async def test_enum_sensor(zha_gateway: Gateway) -> None: zha_device = await join_zigpy_device(zha_gateway, zigpy_dev) entity = get_entity(zha_device, platform=Platform.SENSOR, qualifier="battery_size") - assert entity.state["state"] == "AAA" + assert entity.state["state"] == "aaa" zigpy_dev.endpoints[1].power.update_attribute( PowerConfiguration.AttributeDefs.battery_size.id, diff --git a/zha/application/platforms/select.py b/zha/application/platforms/select.py index 5131bf6c6..7947591cb 100644 --- a/zha/application/platforms/select.py +++ b/zha/application/platforms/select.py @@ -125,13 +125,19 @@ def __init__( if self._option_overrides is not None: self._option_to_member: dict[str, Enum] = self._option_overrides else: - self._option_to_member = { - entry.name.replace("_", " "): entry for entry in self._enum - } + self._option_to_member = {entry.name.lower(): entry for entry in self._enum} self._member_to_option = {m: o for o, m in self._option_to_member.items()} self._attr_options = list(self._option_to_member) super().__init__(endpoint=endpoint, device=device, **kwargs) + def _member_for_option(self, option: str) -> Enum: + """Resolve an option string to its enum member, tolerating legacy names.""" + try: + return self._option_to_member[option] + except KeyError: + # Backwards compatibility with the previous spaced option names + return self._option_to_member[option.replace(" ", "_").lower()] + @functools.cached_property def info_object(self) -> EnumSelectInfo: """Return a representation of the select.""" @@ -166,7 +172,7 @@ def current_option(self) -> str | None: async def async_select_option(self, option: str) -> None: """Change the selected option.""" - self._siren().defaults[self._enum] = self._option_to_member[option] + self._siren().defaults[self._enum] = self._member_for_option(option) self.maybe_emit_state_changed_event() def restore_external_state_attributes( @@ -175,7 +181,7 @@ def restore_external_state_attributes( state: str, ) -> None: """Restore extra state attributes that are stored outside of the ZCL cache.""" - self._siren().defaults[self._enum] = self._option_to_member[state] + self._siren().defaults[self._enum] = self._member_for_option(state) @register_entity(IasWd.cluster_id) @@ -246,6 +252,7 @@ class ZCLEnumSelectEntity(BaseSelectEntity, PlatformEntity): _attribute_name: str _attr_entity_category = EntityCategory.CONFIG _enum: type[Enum] + _enum_member_by_option: dict[str, Enum] def __init__( self, @@ -263,7 +270,12 @@ def __init__( self._enum = enum super().__init__(endpoint=endpoint, device=device, **kwargs) - self._attr_options = [entry.name.replace("_", " ") for entry in self._enum] + # Slugified enum member names are used as the (translatable) options. + # The mapping keeps a reference back to the actual enum member. + self._enum_member_by_option = { + entry.name.lower(): entry for entry in self._enum + } + self._attr_options = list(self._enum_member_by_option) def on_add(self) -> None: """Run when entity is added.""" @@ -310,14 +322,18 @@ def current_option(self) -> str | None: option = self._cluster.get(self._attribute_name) if option is None: return None - option = self._enum(option) - return option.name.replace("_", " ") + return self._enum(option).name.lower() async def async_select_option(self, option: str) -> None: """Change the selected option.""" + try: + member = self._enum_member_by_option[option] + except KeyError: + # Backwards compatibility with the previous spaced option names + member = self._enum[option.replace(" ", "_")] await write_attributes_safe( self._cluster, - {self._attribute_name: self._enum[option.replace(" ", "_")]}, + {self._attribute_name: member}, ) self.maybe_emit_state_changed_event() diff --git a/zha/application/platforms/sensor/__init__.py b/zha/application/platforms/sensor/__init__.py index 5ac490b1b..bf909c18c 100644 --- a/zha/application/platforms/sensor/__init__.py +++ b/zha/application/platforms/sensor/__init__.py @@ -550,15 +550,15 @@ def __init__( self._enum = enum super().__init__(endpoint=endpoint, device=device, **kwargs) - self._attr_options = [e.name for e in self._enum] + self._attr_options = [e.name.lower() for e in self._enum] # XXX: This class is not meant to be initialized directly, as `unique_id` # depends on the value of `_attribute_name` def formatter(self, value: int) -> str | None: - """Use name of enum.""" + """Use the slugified name of the enum member (used as translation key).""" assert self._enum is not None - return self._enum(value).name + return self._enum(value).name.lower() @register_entity(AnalogInput.cluster_id)