diff --git a/python_scripts/shellies_discovery_gen2.py b/python_scripts/shellies_discovery_gen2.py index 39de98c..19b1a71 100644 --- a/python_scripts/shellies_discovery_gen2.py +++ b/python_scripts/shellies_discovery_gen2.py @@ -110,6 +110,7 @@ MODEL_PLUS_1PM = "shellyplus1pm" MODEL_PLUS_2PM = "shellyplus2pm" MODEL_PLUS_I4 = "shellyplusi4" +MODEL_PLUS_PLUG_US = "shellyplugus" MODEL_PRO_1 = "shellypro1" MODEL_PRO_1PM = "shellypro1pm" MODEL_PRO_2 = "shellypro2" @@ -531,6 +532,37 @@ }, ATTR_MIN_FIRMWARE_DATE: 20220308, }, + MODEL_PLUS_PLUG_US: { + ATTR_NAME: "Shelly Plus Plug US", + ATTR_BINARY_SENSORS: { + SENSOR_CLOUD: DESCRIPTION_SENSOR_CLOUD, + SENSOR_FIRMWARE: DESCRIPTION_SENSOR_FIRMWARE, + }, + ATTR_BUTTONS: { + BUTTON_RESTART: DESCRIPTION_BUTTON_RESTART, + BUTTON_UPDATE_FIRMWARE: DESCRIPTION_UPDATE_FIRMWARE, + }, + ATTR_RELAYS: 1, + ATTR_RELAY_BINARY_SENSORS: { + SENSOR_OVERPOWER: DESCRIPTION_SENSOR_OVERPOWER, + SENSOR_OVERTEMP: DESCRIPTION_SENSOR_OVERTEMP, + SENSOR_OVERVOLTAGE: DESCRIPTION_SENSOR_OVERVOLTAGE, + }, + ATTR_RELAY_SENSORS: { + SENSOR_CURRENT: DESCRIPTION_SENSOR_CURRENT, + SENSOR_ENERGY: DESCRIPTION_SENSOR_ENERGY, + SENSOR_POWER: DESCRIPTION_SENSOR_POWER, + SENSOR_TEMPERATURE: DESCRIPTION_SENSOR_TEMPERATURE, + SENSOR_VOLTAGE: DESCRIPTION_SENSOR_VOLTAGE, + }, + ATTR_SENSORS: { + SENSOR_LAST_RESTART: DESCRIPTION_SENSOR_LAST_RESTART, + SENSOR_SSID: DESCRIPTION_SENSOR_SSID, + SENSOR_WIFI_IP: DESCRIPTION_SENSOR_WIFI_IP, + SENSOR_WIFI_SIGNAL: DESCRIPTION_SENSOR_WIFI_SIGNAL, + }, + ATTR_MIN_FIRMWARE_DATE: 20220211, + }, MODEL_PRO_1: { ATTR_NAME: "Shelly Pro 1", ATTR_BINARY_SENSORS: {