Skip to content

Commit

Permalink
Add Plus Plug US support (#80)
Browse files Browse the repository at this point in the history
* Add Plus Plug US support

* Add sensors
  • Loading branch information
bieniu authored Jul 9, 2022
1 parent a0d21d2 commit ef601a7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions python_scripts/shellies_discovery_gen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit ef601a7

Please sign in to comment.