bloodtick / Hubitat

4 stars 3 forks source link

[NEW DEVICE SUPPORT] Samsung Soundbar q990c #21

Open FrankMcTank opened 2 weeks ago

FrankMcTank commented 2 weeks ago

Requesting New Device support. Comments: {{Add your Comments Here}}

COPY REPLICA METADATA BELOW THIS LINE

[{ "DESCRIPTION": {"allowed":null,"components":[{"capabilities":[{"id":"ocf","version":1},{"id":"execute","version":1},{"id":"refresh","version":1},{"id":"switch","version":1},{"id":"audioVolume","version":1},{"id":"audioMute","version":1},{"id":"audioTrackData","version":1},{"id":"mediaInputSource","version":1},{"id":"samsungvd.audioInputSource","version":1},{"id":"mediaPlayback","version":1},{"id":"audioNotification","version":1},{"id":"samsungvd.soundFrom","version":1},{"id":"samsungvd.thingStatus","version":1},{"ephemeral":true,"id":"samsungvd.audioGroupInfo","version":1}],"categories":[{"categoryType":"manufacturer","name":"NetworkAudio"}],"id":"main","label":"main"}],"createTime":"2024-09-26T00:38:53.686Z","deviceId":"hidden","deviceManufacturerCode":"Samsung Electronics","deviceTypeName":"Samsung OCF Network Audio Player","executionContext":"CLOUD","label":"Q-Series Soundbar","locationId":"hidden","manufacturerName":"Samsung Electronics","name":"Q-Series Soundbar","ocf":{"additionalAuthCodeRequired":false,"firmwareVersion":"SAT-iMX8M23WWC-1004.0","hwVersion":"","lastSignupTime":"2024-09-26T00:38:49.525725Z","manufacturerName":"Samsung Electronics","modelNumber":"HW-Q990C","name":"Q-Series Soundbar","ocfDeviceType":"oic.d.networkaudio","platformOS":"Tizen","platformVersion":"7.0","specVersion":"core.1.1.0","transferCandidate":false,"vendorId":"VD-NetworkAudio-002S","vendorResourceClientServerVersion":"3.2.41","verticalDomainSpecVersion":"res.1.1.0,sh.1.1.0"},"ownerId":"e866dc52-5b1b-933e-a1d5-0baf2be2da31","presentationId":"VD-NetworkAudio-002S","profile":{"id":"eb5590cf-a076-3b5f-90fa-4005bd389c58"},"restrictionTier":0,"roomId":"hidden","type":"OCF"} }, { "CAPABILITIES": {"components":[{"attributes":{"di":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"dmv":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"icv":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mndt":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnfv":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnhw":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnml":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnmn":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnmo":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnos":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnpv":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"mnsl":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"n":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"pi":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"st":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}},"vid":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"maxLength":255,"title":"String","type":"string"}},"required":["value"],"title":"StringAttribute","type":"object"}}},"commands":{"postOcfCommand":{"arguments":[{"name":"href","optional":false,"schema":{"maxLength":255,"title":"String","type":"string"}},{"name":"value","optional":false,"schema":{"title":"JsonObject","type":"object"}}],"name":"postOcfCommand"}},"ephemeral":false,"id":"ocf","name":"Ocf","status":"deprecated","version":1},{"attributes":{"data":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":true,"required":[],"type":"object"},"value":{"title":"JsonObject","type":"object"}},"required":["value"],"type":"object"}}},"commands":{"execute":{"arguments":[{"name":"command","optional":false,"schema":{"maxLength":255,"title":"String","type":"string"}},{"name":"args","optional":true,"schema":{"title":"JsonObject","type":"object"}}],"name":"execute"}},"ephemeral":false,"id":"execute","name":"Execute","status":"deprecated","version":1},{"attributes":{},"commands":{"refresh":{"arguments":[],"name":"refresh"}},"ephemeral":false,"id":"refresh","name":"Refresh","status":"live","version":1},{"attributes":{"switch":{"enumCommands":[{"command":"on","value":"on"},{"command":"off","value":"off"}],"schema":{"additionalProperties":false,"properties":{"value":{"enum":["on","off"],"title":"SwitchState","type":"string"}},"required":["value"],"type":"object"}}},"commands":{"off":{"arguments":[],"name":"off"},"on":{"arguments":[],"name":"on"}},"ephemeral":false,"id":"switch","name":"Switch","status":"live","version":1},{"attributes":{"volume":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"unit":{"default":"%","enum":["%"],"type":"string"},"value":{"maximum":100,"minimum":0,"type":"integer"}},"required":["value"],"title":"IntegerPercent","type":"object"},"setter":"setVolume"}},"commands":{"setVolume":{"arguments":[{"name":"volume","optional":false,"schema":{"maximum":100,"minimum":0,"type":"integer"}}],"name":"setVolume"},"volumeDown":{"arguments":[],"name":"volumeDown"},"volumeUp":{"arguments":[],"name":"volumeUp"}},"ephemeral":false,"id":"audioVolume","name":"Audio Volume","status":"live","version":1},{"attributes":{"mute":{"enumCommands":[{"command":"mute","value":"muted"},{"command":"unmute","value":"unmuted"}],"schema":{"additionalProperties":false,"properties":{"value":{"enum":["muted","unmuted"],"title":"MuteState","type":"string"}},"required":["value"],"type":"object"},"setter":"setMute"}},"commands":{"mute":{"arguments":[],"name":"mute"},"setMute":{"arguments":[{"name":"state","optional":false,"schema":{"enum":["muted","unmuted"],"title":"MuteState","type":"string"}}],"name":"setMute"},"unmute":{"arguments":[],"name":"unmute"}},"ephemeral":false,"id":"audioMute","name":"Audio Mute","status":"live","version":1},{"attributes":{"audioTrackData":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"additionalProperties":false,"properties":{"album":{"maxLength":255,"title":"String","type":"string"},"albumArtUrl":{"format":"uri","title":"URI","type":"string"},"artist":{"maxLength":255,"title":"String","type":"string"},"mediaSource":{"maxLength":255,"title":"String","type":"string"},"title":{"maxLength":255,"title":"String","type":"string"}},"required":["title"],"title":"AudioTrackData","type":"object"}},"required":["value"],"type":"object"}},"elapsedTime":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"minimum":0,"title":"PositiveInteger","type":"integer"}},"required":[],"type":"object"}},"totalTime":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"minimum":0,"title":"PositiveInteger","type":"integer"}},"required":[],"type":"object"}}},"commands":{},"ephemeral":false,"id":"audioTrackData","name":"Audio Track Data","status":"live","version":1},{"attributes":{"inputSource":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"enum":["AM","CD","FM","HDMI","HDMI1","HDMI2","HDMI3","HDMI4","HDMI5","HDMI6","digitalTv","USB","YouTube","aux","bluetooth","digital","melon","wifi","network","optical","coaxial","analog1","analog2","analog3","phono"],"title":"MediaSource","type":"string"}},"required":["value"],"type":"object"},"setter":"setInputSource"},"supportedInputSources":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"items":{"enum":["AM","CD","FM","HDMI","HDMI1","HDMI2","HDMI3","HDMI4","HDMI5","HDMI6","digitalTv","USB","YouTube","aux","bluetooth","digital","melon","wifi","network","optical","coaxial","analog1","analog2","analog3","phono"],"title":"MediaSource","type":"string"},"type":"array"}},"required":["value"],"type":"object"}}},"commands":{"setInputSource":{"arguments":[{"name":"mode","optional":false,"schema":{"enum":["AM","CD","FM","HDMI","HDMI1","HDMI2","HDMI3","HDMI4","HDMI5","HDMI6","digitalTv","USB","YouTube","aux","bluetooth","digital","melon","wifi","network","optical","coaxial","analog1","analog2","analog3","phono"],"title":"MediaSource","type":"string"}}],"name":"setInputSource"}},"ephemeral":false,"id":"mediaInputSource","name":"Media Input Source","status":"live","version":1},{"attributes":{"inputSource":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"type":"string"}},"required":["value"],"type":"object"}},"supportedInputSources":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"items":{"type":"string"},"required":[],"type":"array"}},"required":[],"type":"object"}}},"commands":{},"ephemeral":false,"id":"samsungvd.audioInputSource","name":"Audio Input Source","status":"proposed","version":1},{"attributes":{"playbackStatus":{"enumCommands":[{"command":"play","value":"playing"},{"command":"pause","value":"paused"},{"command":"stop","value":"stopped"},{"command":"fastForward","value":"fast forwarding"},{"command":"rewind","value":"rewinding"}],"schema":{"additionalProperties":false,"properties":{"value":{"enum":["paused","playing","stopped","fast forwarding","rewinding","buffering"],"type":"string"}},"required":[],"type":"object"},"setter":"setPlaybackStatus"},"supportedPlaybackCommands":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"items":{"enum":["pause","play","stop","fastForward","rewind"],"title":"MediaPlaybackCommands","type":"string"},"type":"array"}},"required":[],"type":"object"}}},"commands":{"fastForward":{"arguments":[],"name":"fastForward"},"pause":{"arguments":[],"name":"pause"},"play":{"arguments":[],"name":"play"},"rewind":{"arguments":[],"name":"rewind"},"setPlaybackStatus":{"arguments":[{"name":"status","optional":false,"schema":{"enum":["paused","playing","stopped","fast forwarding","rewinding"],"type":"string"}}],"name":"setPlaybackStatus"},"stop":{"arguments":[],"name":"stop"}},"ephemeral":false,"id":"mediaPlayback","name":"Media Playback","status":"live","version":1},{"attributes":{},"commands":{"playTrack":{"arguments":[{"name":"uri","optional":false,"schema":{"format":"uri","title":"URI","type":"string"}},{"name":"level","optional":true,"schema":{"maximum":100,"minimum":0,"type":"integer"}}],"name":"playTrack"},"playTrackAndRestore":{"arguments":[{"name":"uri","optional":false,"schema":{"format":"uri","title":"URI","type":"string"}},{"name":"level","optional":true,"schema":{"maximum":100,"minimum":0,"type":"integer"}}],"name":"playTrackAndRestore"},"playTrackAndResume":{"arguments":[{"name":"uri","optional":false,"schema":{"format":"uri","title":"URI","type":"string"}},{"name":"level","optional":true,"schema":{"maximum":100,"minimum":0,"type":"integer"}}],"name":"playTrackAndResume"}},"ephemeral":false,"id":"audioNotification","name":"Audio Notification","status":"live","version":1},{"attributes":{"detailName":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"type":"string"}},"required":["value"],"type":"object"}},"mode":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"type":"integer"}},"required":["value"],"type":"object"}}},"commands":{"setSoundFrom":{"arguments":[{"name":"mode","optional":false,"schema":{"type":"integer"}},{"name":"detailName","optional":true,"schema":{"type":"string"}}],"name":"setSoundFrom"}},"ephemeral":false,"id":"samsungvd.soundFrom","name":"Sound From","status":"proposed","version":1},{"attributes":{"status":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"enum":["AgentUpdate Started","Idle"],"type":"string"}},"required":["value"],"type":"object"}},"updatedTime":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"type":"integer"}},"required":["value"],"type":"object"}}},"commands":{},"ephemeral":false,"id":"samsungvd.thingStatus","name":"Thing Status","status":"proposed","version":1},{"attributes":{"role":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"type":"string"}},"required":["value"],"type":"object"}},"status":{"enumCommands":[],"schema":{"additionalProperties":false,"properties":{"value":{"type":"string"}},"required":["value"],"type":"object"}}},"commands":{},"ephemeral":true,"id":"samsungvd.audioGroupInfo","name":"Audio Group Info","status":"proposed","version":1}]} }, { "STATUS": {"components":{"main":{"audioMute":{"mute":{"timestamp":"2024-11-11T02:23:25.498Z","value":"muted"}},"audioNotification":{},"audioTrackData":{"audioTrackData":{"timestamp":"2024-11-10T03:12:57.226Z","value":{"album":"","artist":"","title":""}},"elapsedTime":{"timestamp":"2024-11-10T03:12:57.159Z","value":0},"totalTime":{"timestamp":"2024-11-10T03:12:57.226Z","value":0}},"audioVolume":{"volume":{"timestamp":"2024-11-11T02:23:25.498Z","unit":"%","value":10}},"execute":{"data":{"value":null}},"mediaInputSource":{"inputSource":{"timestamp":"2024-11-10T03:12:56.435Z","value":"digital"},"supportedInputSources":{"timestamp":"2024-11-10T03:12:56.435Z","value":["digital","HDMI1","bluetooth","wifi","HDMI2"]}},"mediaPlayback":{"playbackStatus":{"timestamp":"2024-11-10T17:29:03.133Z","value":"stopped"},"supportedPlaybackCommands":{"timestamp":"2024-11-10T17:29:03.133Z","value":["play","pause","stop"]}},"ocf":{"di":{"timestamp":"2024-11-07T02:21:56.285Z","value":"bac3ca12-60ce-45ab-05b7-cdbb8e44d0bc"},"dmv":{"timestamp":"2024-11-07T02:21:56.285Z","value":"res.1.1.0,sh.1.1.0"},"icv":{"timestamp":"2024-11-07T02:21:56.285Z","value":"core.1.1.0"},"mndt":{"timestamp":"2024-11-07T02:21:56.285Z","value":"2023-01-01"},"mnfv":{"timestamp":"2024-11-07T02:21:56.285Z","value":"SAT-iMX8M23WWC-1004.0"},"mnhw":{"timestamp":"2024-11-07T02:21:56.285Z","value":""},"mnml":{"timestamp":"2024-11-07T02:21:56.285Z","value":""},"mnmn":{"timestamp":"2024-11-07T02:21:56.285Z","value":"Samsung Electronics"},"mnmo":{"timestamp":"2024-11-07T02:21:56.285Z","value":"HW-Q990C"},"mnos":{"timestamp":"2024-11-07T02:21:56.285Z","value":"Tizen"},"mnpv":{"timestamp":"2024-11-07T02:21:56.285Z","value":"7.0"},"mnsl":{"timestamp":"2024-11-07T02:21:56.285Z","value":""},"n":{"timestamp":"2024-11-07T02:21:56.285Z","value":"Q-Series Soundbar"},"pi":{"timestamp":"2024-11-07T02:21:56.285Z","value":"bac3ca12-60ce-45ab-05b7-cdbb8e44d0bc"},"st":{"timestamp":"2024-11-07T02:21:56.285Z","value":"2024-11-07T02:21:52Z"},"vid":{"timestamp":"2024-11-07T02:21:56.285Z","value":"VD-NetworkAudio-002S"}},"refresh":{},"samsungvd.audioGroupInfo":{"role":{"value":null},"status":{"value":null}},"samsungvd.audioInputSource":{"inputSource":{"timestamp":"2024-11-10T03:12:56.435Z","value":"digital"},"supportedInputSources":{"timestamp":"2024-11-10T03:12:56.435Z","value":["digital","HDMI1","bluetooth","wifi","HDMI2"]}},"samsungvd.soundFrom":{"detailName":{"timestamp":"2024-11-11T02:23:25.590Z","value":"External Device"},"mode":{"timestamp":"2024-11-11T02:23:25.590Z","value":25}},"samsungvd.thingStatus":{"status":{"timestamp":"2024-11-10T03:12:56.317Z","value":"Idle"},"updatedTime":{"timestamp":"2024-11-10T03:12:56.317Z","value":1731208376}},"switch":{"switch":{"timestamp":"2024-11-11T02:23:25.506Z","value":"off"}}}}} }, { "RULES": {"components":[{"command":{"capability":"switch","label":"command: off()","name":"off","type":"command"},"trigger":{"label":"command: off()","name":"off","type":"command"},"type":"hubitatTrigger"},{"command":{"capability":"switch","label":"command: on()","name":"on","type":"command"},"trigger":{"label":"command: on()","name":"on","type":"command"},"type":"hubitatTrigger"},{"command":{"label":"command: setSwitchValue(switch)","name":"setSwitchValue","parameters":[{"name":"switch","type":"ENUM"}],"type":"command"},"trigger":{"additionalProperties":false,"attribute":"switch","capability":"switch","label":"attribute: switch.","properties":{"value":{"title":"SwitchState","type":"string"}},"required":["value"],"type":"attribute"},"type":"smartTrigger"},{"command":{"label":"command: setHealthStatusValue(healthStatus)","name":"setHealthStatusValue","parameters":[{"name":"healthStatus","type":"ENUM"}],"type":"command"},"mute":true,"trigger":{"additionalProperties":false,"attribute":"healthStatus","capability":"healthCheck","label":"attribute: healthStatus.","properties":{"value":{"title":"HealthState","type":"string"}},"required":["value"],"type":"attribute"},"type":"smartTrigger"},{"command":{"label":"command: setPowerValue(power)","name":"setPowerValue","parameters":[{"name":"power","type":"NUMBER"}],"type":"command"},"mute":true,"trigger":{"additionalProperties":false,"attribute":"power","capability":"powerMeter","label":"attribute: power.*","properties":{"unit":{"default":"W","enum":["W"],"type":"string"},"value":{"type":"number"}},"required":["value"],"type":"attribute"},"type":"smartTrigger"}],"version":1} }]