bloodtick / Hubitat

4 stars 3 forks source link

[NEW DEVICE SUPPORT] ST Carport Plus Uni - main #18

Open garhun opened 6 months ago

garhun commented 6 months ago

Requesting New Device support. Comments: I would like to have this device supported in all of its capabilities, I.e. inputs 0 and 1, sw 0 and 1, etc.

COPY REPLICA METADATA BELOW THIS LINE

↓↓↓ INCLUDE METADATA BELOW ↓↓↓
[{ "DESCRIPTION":
{"deviceId":"hidden","name":"shellyg2_uni.v1","label":"ST Carport Plus Uni","manufacturerName":"SmartThingsCommunity","presentationId":"7182d42c-6dd4-37ee-b186-a2e1cef85526","deviceManufacturerCode":"Allterco Robotics","locationId":"hidden","ownerId":"654fe68e-8a05-4e14-8d67-50446106ae79","roomId":"hidden","components":[{"id":"main","label":"Switch:0","capabilities":[{"id":"switch","version":1},{"id":"powerMeter","version":1},{"id":"partyvoice23922.amperage","version":1},{"id":"voltageMeasurement","version":1},{"id":"partyvoice23922.powerfactor2","version":1},{"id":"energyMeter","version":1},{"id":"temperatureMeasurement","version":1},{"id":"partyvoice23922.errorstatus","version":1},{"id":"refresh","version":1}],"categories":[{"name":"Switch","categoryType":"manufacturer"}]},{"id":"switch1","label":"Switch:1","capabilities":[{"id":"switch","version":1},{"id":"powerMeter","version":1},{"id":"partyvoice23922.amperage","version":1},{"id":"voltageMeasurement","version":1},{"id":"partyvoice23922.powerfactor2","version":1},{"id":"energyMeter","version":1},{"id":"temperatureMeasurement","version":1},{"id":"partyvoice23922.errorstatus","version":1}],"categories":[{"name":"Other","categoryType":"manufacturer"}]},{"id":"input0","label":"Input:0","capabilities":[{"id":"partyvoice23922.inputstate","version":1},{"id":"partyvoice23922.inputpercent","version":1},{"id":"partyvoice23922.errorsensor","version":1},{"id":"button","version":1}],"categories":[{"name":"Other","categoryType":"manufacturer"}]},{"id":"input1","label":"Input:1","capabilities":[{"id":"partyvoice23922.inputstate","version":1},{"id":"partyvoice23922.inputpercent","version":1},{"id":"partyvoice23922.errorsensor","version":1},{"id":"button","version":1}],"categories":[{"name":"Other","categoryType":"manufacturer"}]},{"id":"input2","label":"Input:2","capabilities":[{"id":"partyvoice23922.count","version":1},{"id":"partyvoice23922.errorsensor","version":1}],"categories":[{"name":"Other","categoryType":"manufacturer"}]},{"id":"wifi","label":"Wifi","capabilities":[{"id":"partyvoice23922.infotable","version":1}],"categories":[{"name":"Other","categoryType":"manufacturer"}]},{"id":"system","label":"Device","capabilities":[{"id":"partyvoice23922.infotable","version":1}],"categories":[{"name":"Other","categoryType":"manufacturer"}]}],"createTime":"2024-05-12T00:19:51.159Z","parentDeviceId":"hidden","profile":{"id":"5270aa6e-9ebf-31b2-b4d6-303e3ccbf013"},"lan":{"networkId":"shellyplusuni-d48afc79f8d0","driverId":"f3258c1d-b6e9-424d-8b3f-b1e8fe51c4ca","executingLocally":true,"hubId":"hidden","provisioningState":"TYPED"},"type":"LAN","restrictionTier":0,"allowed":null,"executionContext":"LOCAL"}
},
{ "CAPABILITIES":
{"components":[{"id":"switch","version":1,"status":"live","name":"Switch","ephemeral":false,"attributes":{"switch":{"schema":{"type":"object","properties":{"value":{"title":"SwitchState","type":"string","enum":["on","off"]}},"additionalProperties":false,"required":["value"]},"enumCommands":[{"command":"on","value":"on"},{"command":"off","value":"off"}]}},"commands":{"off":{"name":"off","arguments":[]},"on":{"name":"on","arguments":[]}}},{"id":"powerMeter","version":1,"status":"live","name":"Power Meter","ephemeral":false,"attributes":{"power":{"schema":{"type":"object","properties":{"value":{"type":"number"},"unit":{"type":"string","enum":["W"],"default":"W"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"partyvoice23922.amperage","version":1,"status":"proposed","name":"amperage","ephemeral":false,"attributes":{"amperage":{"schema":{"type":"object","properties":{"value":{"title":"Number","type":"number"},"unit":{"type":"string","enum":["A"],"default":"A"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"voltageMeasurement","version":1,"status":"live","name":"Voltage Measurement","ephemeral":false,"attributes":{"voltage":{"schema":{"type":"object","properties":{"value":{"title":"Number","type":"number"},"unit":{"type":"string","enum":["V"],"default":"V"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"partyvoice23922.powerfactor2","version":1,"status":"proposed","name":"powerfactor2","ephemeral":false,"attributes":{"powerfactor":{"schema":{"type":"object","properties":{"value":{"title":"Number","type":"number","minimum":0,"maximum":100},"unit":{"type":"string","enum":["%"],"default":"%"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"energyMeter","version":1,"status":"live","name":"Energy Meter","ephemeral":false,"attributes":{"energy":{"schema":{"type":"object","properties":{"value":{"type":"number"},"unit":{"type":"string","enum":["Wh","kWh","mWh","kVAh"],"default":"kWh"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{"resetEnergyMeter":{"name":"resetEnergyMeter","arguments":[]}}},{"id":"temperatureMeasurement","version":1,"status":"live","name":"Temperature Measurement","ephemeral":false,"attributes":{"temperatureRange":{"schema":{"type":"object","properties":{"value":{"type":"object","additionalProperties":false,"properties":{"minimum":{"title":"TemperatureValue","type":"number","minimum":-460,"maximum":10000},"maximum":{"title":"TemperatureValue","type":"number","minimum":-460,"maximum":10000},"step":{"title":"TemperatureValue","type":"number","minimum":-460,"maximum":10000}},"required":["minimum","maximum"]},"unit":{"type":"string","enum":["F","C"]}},"additionalProperties":false,"required":["value","unit"]},"enumCommands":[]},"temperature":{"schema":{"type":"object","properties":{"value":{"title":"TemperatureValue","type":"number","minimum":-460,"maximum":10000},"unit":{"type":"string","enum":["F","C"]}},"additionalProperties":false,"required":["value","unit"]},"enumCommands":[]}},"commands":{}},{"id":"partyvoice23922.errorstatus","version":1,"status":"proposed","name":"errorstatus","ephemeral":false,"attributes":{"errorstatus":{"schema":{"type":"object","properties":{"value":{"type":"string"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"refresh","version":1,"status":"live","name":"Refresh","ephemeral":false,"attributes":{},"commands":{"refresh":{"name":"refresh","arguments":[]}}},{"id":"partyvoice23922.inputstate","version":1,"status":"proposed","name":"inputstate","ephemeral":false,"attributes":{"state":{"schema":{"type":"object","properties":{"value":{"type":"string"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"partyvoice23922.inputpercent","version":1,"status":"proposed","name":"inputpercent","ephemeral":false,"attributes":{"percent":{"schema":{"type":"object","properties":{"value":{"type":"number","minimum":0,"maximum":100},"unit":{"type":"string","enum":["%"],"default":"%"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"partyvoice23922.errorsensor","version":1,"status":"proposed","name":"errorsensor","ephemeral":false,"attributes":{"errorstatus":{"schema":{"type":"object","properties":{"value":{"type":"string"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"button","version":1,"status":"live","name":"Button","ephemeral":false,"attributes":{"button":{"schema":{"type":"object","properties":{"value":{"title":"ButtonState","type":"string","enum":["pushed","held","double","pushed_2x","pushed_3x","pushed_4x","pushed_5x","pushed_6x","down","down_2x","down_3x","down_4x","down_5x","down_6x","down_hold","up","up_2x","up_3x","up_4x","up_5x","up_6x","up_hold","swipe_up","swipe_down","swipe_left","swipe_right"]}},"additionalProperties":false,"required":["value"]},"enumCommands":[]},"numberOfButtons":{"schema":{"type":"object","properties":{"value":{"title":"PositiveInteger","type":"integer","minimum":0}},"additionalProperties":false,"required":["value"]},"enumCommands":[]},"supportedButtonValues":{"schema":{"type":"object","properties":{"value":{"type":"array","items":{"title":"ButtonState","type":"string","enum":["pushed","held","double","pushed_2x","pushed_3x","pushed_4x","pushed_5x","pushed_6x","down","down_2x","down_3x","down_4x","down_5x","down_6x","down_hold","up","up_2x","up_3x","up_4x","up_5x","up_6x","up_hold","swipe_up","swipe_down","swipe_left","swipe_right"]}}},"additionalProperties":false,"required":[]},"enumCommands":[]}},"commands":{}},{"id":"partyvoice23922.count","version":1,"status":"proposed","name":"count","ephemeral":false,"attributes":{"count":{"schema":{"type":"object","properties":{"value":{"type":"integer"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}},{"id":"partyvoice23922.infotable","version":1,"status":"proposed","name":"infotable","ephemeral":false,"attributes":{"info":{"schema":{"type":"object","properties":{"value":{"type":"string"}},"additionalProperties":false,"required":["value"]},"enumCommands":[]}},"commands":{}}]}
},
{ "STATUS":
{"components":{"wifi":{"partyvoice23922.infotable":{"info":{"value":"\n\n\n\n\n\n\n\n\n\n IP: 192.168.0.36

SSID: Google Onhub RSSI: -64

\n\n\n","timestamp":"2024-05-14T22:29:05.713Z"}}},"switch1":{"powerMeter":{"power":{"value":0,"unit":"W","timestamp":"2024-05-12T00:19:53.407Z"}},"voltageMeasurement":{"voltage":{"value":0,"unit":"V","timestamp":"2024-05-12T00:19:53.476Z"}},"partyvoice23922.powerfactor2":{"powerfactor":{"value":0,"unit":"%","timestamp":"2024-05-12T00:19:53.470Z"}},"partyvoice23922.errorstatus":{"errorstatus":{"value":" ","timestamp":"2024-05-12T00:19:53.448Z"}},"energyMeter":{"energy":{"value":0,"unit":"Wh","timestamp":"2024-05-12T00:19:53.508Z"}},"partyvoice23922.amperage":{"amperage":{"value":0,"unit":"A","timestamp":"2024-05-12T00:19:53.465Z"}},"temperatureMeasurement":{"temperatureRange":{"value":null},"temperature":{"value":68.0,"unit":"F","timestamp":"2024-05-12T00:19:53.387Z"}},"switch":{"switch":{"value":"off","timestamp":"2024-05-14T21:31:57.809Z"}}},"input2":{"partyvoice23922.count":{"count":{"value":0,"timestamp":"2024-05-12T00:19:53.245Z"}},"partyvoice23922.errorsensor":{"errorstatus":{"value":" ","timestamp":"2024-05-12T00:19:53.257Z"}}},"input1":{"button":{"button":{"value":null},"numberOfButtons":{"value":null},"supportedButtonValues":{"value":["pushed","held","double"],"timestamp":"2024-05-12T00:19:53.226Z"}},"partyvoice23922.inputpercent":{"percent":{"value":0,"unit":"%","timestamp":"2024-05-12T00:19:53.245Z"}},"partyvoice23922.inputstate":{"state":{"value":"false","timestamp":"2024-05-14T21:31:57.733Z"}},"partyvoice23922.errorsensor":{"errorstatus":{"value":" ","timestamp":"2024-05-12T00:19:53.245Z"}}},"input0":{"button":{"button":{"value":null},"numberOfButtons":{"value":null},"supportedButtonValues":{"value":["pushed","held","double"],"timestamp":"2024-05-12T00:19:53.334Z"}},"partyvoice23922.inputpercent":{"percent":{"value":0,"unit":"%","timestamp":"2024-05-12T00:19:53.284Z"}},"partyvoice23922.inputstate":{"state":{"value":"true","timestamp":"2024-05-14T20:41:20.453Z"}},"partyvoice23922.errorsensor":{"errorstatus":{"value":" ","timestamp":"2024-05-12T00:19:53.317Z"}}},"main":{"powerMeter":{"power":{"value":0,"unit":"W","timestamp":"2024-05-12T00:19:53.608Z"}},"voltageMeasurement":{"voltage":{"value":0,"unit":"V","timestamp":"2024-05-12T00:19:53.637Z"}},"partyvoice23922.powerfactor2":{"powerfactor":{"value":0,"unit":"%","timestamp":"2024-05-12T00:19:53.639Z"}},"partyvoice23922.errorstatus":{"errorstatus":{"value":" ","timestamp":"2024-05-12T00:19:53.591Z"}},"energyMeter":{"energy":{"value":0,"unit":"Wh","timestamp":"2024-05-12T00:19:53.636Z"}},"partyvoice23922.amperage":{"amperage":{"value":0,"unit":"A","timestamp":"2024-05-12T00:19:53.638Z"}},"temperatureMeasurement":{"temperatureRange":{"value":null},"temperature":{"value":68.0,"unit":"F","timestamp":"2024-05-12T00:19:53.590Z"}},"refresh":{},"switch":{"switch":{"value":"off","timestamp":"2024-05-14T20:34:12.603Z"}}}}}
},

{ "RULES":
{"version":1,"components":[{"trigger":{"name":"off","label":"command: off()","type":"command"},"command":{"name":"off","type":"command","capability":"switch","label":"command: off()"},"type":"hubitatTrigger"},{"trigger":{"name":"on","label":"command: on()","type":"command"},"command":{"name":"on","type":"command","capability":"switch","label":"command: on()"},"type":"hubitatTrigger"},{"trigger":{"type":"attribute","properties":{"value":{"title":"SwitchState","type":"string"}},"additionalProperties":false,"required":["value"],"capability":"switch","attribute":"switch","label":"attribute: switch."},"command":{"name":"setSwitchValue","label":"command: setSwitchValue(switch)","type":"command","parameters":[{"name":"switch","type":"ENUM"}]},"type":"smartTrigger"},{"trigger":{"type":"attribute","properties":{"value":{"title":"HealthState","type":"string"}},"additionalProperties":false,"required":["value"],"capability":"healthCheck","attribute":"healthStatus","label":"attribute: healthStatus."},"command":{"name":"setHealthStatusValue","label":"command: setHealthStatusValue(healthStatus)","type":"command","parameters":[{"name":"healthStatus","type":"ENUM"}]},"type":"smartTrigger","mute":true}]}
}]
↑↑↑ INCLUDE METADATA ABOVE ↑↑↑