[quote=“shallowearth, post:1, topic:189841”]On your Caseta Dimmer you care creating both
Dimmer1 Status
and a
SwitchPower1 Status[/quote]
That is correct.
Both are required for the dimmable light device to function correctly.
That is incorrect.
Here is an excerpt from my Vera Edge UI 7.0.12 logs with the latest version of the plugin:
From a command sent by Vera to the Wink API:
02 11/23/15 22:22:19.325 luup_log:486: (Wink_Connect::HUB_DEVICES::updateDevice): Received http response [200] [HTTP/1.1 200 OK] [{"data":{"desired_state":{"powered":false,"brightness":0.0},"last_reading":{"connection":true,"connection_updated_at":1448342512.11712,"powered":true,"powered_updated_at":1448342512.11712,"brightness":1.0,"brightness_updated_at":1448342512.11712,"desired_powered":false,"desired_powered_updated_at":1448342539.2101722,"desired_brightness":0.0,"desired_brightness_updated_at":1448342539.2101722,"desired_powered_changed_at":1448342539.2101722,"desired_brightness_changed_at":1448342539.2101722,"powered_changed_at":1448342512.11712},"subscription":{"pubnub":{"subscribe_key":"sub-c-f7bf7f7e-0542-11e3-a5e8-02ee2ddab7fe","channel":"f08d47fdb88b3eaf4375eeedcac85dde05c405cc|light_bulb-809778|user-107803"}},"light_bulb_id":"809778","name":"Office Fixture","locale":"en_us","units":{},"created_at":1438467841,"hidden_at":null,"capabilities":{},"user_ids":["107803"],"triggers":[],"manufacturer_device_model":"lutron_p_pkg1_p_wh_d","manufacturer_device_id":null,"device_manufacturer":"lutron","model_name":"Caseta Lamp Dimmer \u0026 Pico","upc_id":"33","upc_code":"784276072083","gang_id":null,"hub_id":"112742","local_id":"20","radio_type":"lutron","linked_service_id":null,"lat_lng":[0.0,0.0],"location":"","order":0},"errors":[],"pagination":{}}]. <0x77cf0320>
50 11/23/15 22:22:19.333 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:Dimming1] variable [LoadLevelTarget] current [100] new [0]. <0x77cf0320>
50 11/23/15 22:22:19.334 luup_log:486: (Wink_Connect::setChildVariable) Setting LoadLevelTarget [0]. <0x77cf0320>
06 11/23/15 22:22:19.334 Device_Variable::m_szValue_set device: 881 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelTarget was: 100 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xd7d588/NONE duplicate:0 <0x77cf0320>
50 11/23/15 22:22:19.359 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:SwitchPower1] variable [Target] current [1] new [0]. <0x77cf0320>
50 11/23/15 22:22:19.359 luup_log:486: (Wink_Connect::setChildVariable) Setting Target [0]. <0x77cf0320>
06 11/23/15 22:22:19.360 Device_Variable::m_szValue_set device: 881 service: urn:upnp-org:serviceId:SwitchPower1 variable: Target was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xcf91d8/NONE duplicate:0 <0x77cf0320>
50 11/23/15 22:22:19.360 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:Dimming1] variable [LoadLevelStatus] current [100] new [0]. <0x77cf0320>
50 11/23/15 22:22:19.361 luup_log:486: (Wink_Connect::setChildVariable) Setting LoadLevelStatus [0]. <0x77cf0320>
06 11/23/15 22:22:19.361 Device_Variable::m_szValue_set device: 881 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelStatus was: 100 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xd78758/NONE duplicate:0 <0x77cf0320>
50 11/23/15 22:22:19.362 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:SwitchPower1] variable [Status] current [1] new [0]. <0x77cf0320>
50 11/23/15 22:22:19.363 luup_log:486: (Wink_Connect::setChildVariable) Setting Status [0]. <0x77cf0320>
06 11/23/15 22:22:19.363 Device_Variable::m_szValue_set device: 881 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xcf9240/NONE duplicate:0 <0x77cf0320>
50 11/23/15 22:22:19.364 luup_log:486: (Wink_Connect::ACTION_Dimming1::setLoadLevelTarget): Wink device updated [13]. <0x77cf0320>
04 11/23/15 22:22:19.365 <Job ID="3234" Name="" Device="881" Created="2015-11-23 22:22:18" Started="2015-11-23 22:22:18" Completed="2015-11-23 22:22:19" Duration="0.735414000" Runtime="0.735029000" Status="Successful" LastNote=""/> <0x77cf0320>
From a notification sent by the Wink API (in response to pressing the physical button on the Lutron Caseta Dimmer):
02 11/23/15 22:28:35.102 luup_log:486: Wink_Connect::HUB_PUBNUB::processSubscription: Received subscription data '[[{"capabilities":{},"created_at":1438467841,"desired_state":{},"device_manufacturer":"lutron","gang_id":null,"hidden_at":null,"hub_id":"112742","icon_id":"71","last_reading":{"brightness":1.0,"brightness_updated_at":1448342914.133889,"connection":true,"connection_updated_at":1448342914.133889,"desired_brightness_changed_at":1448342540.2870462,"desired_brightness_updated_at":1448342540.2870462,"desired_powered_changed_at":1448342540.2870462,"desired_powered_updated_at":1448342540.2870462,"powered":false,"powered_changed_at":1448342914.133889,"powered_updated_at":1448342914.133889},"lat_lng":[0.0,0.0],"light_bulb_id":"809778","linked_service_id":null,"local_id":"20","locale":"en_us","location":"","manufacturer_device_id":null,"manufacturer_device_model":"lutron_p_pkg1_p_wh_d","model_name":"Caseta Lamp Dimmer \\u0026 Pico","name":"Office Fixture","object_id":"809778","object_type":"light_bulb","order":0,"radio_type":"lutron","subscription":{"pubnub":{"channel":"f08d47fdb88b3eaf4375eeedcac85dde05c405cc|light_bulb-809778|user-107803","subscribe_key":"sub-c-f7bf7f7e-0542-11e3-a5e8-02ee2ddab7fe"}},"triggers":[],"units":{},"upc_code":"784276072083","upc_id":"33","user_ids":["107803"],"nonce":"03df4215-5559-49a1-a890-f450d2940eff"}],"14483429142765239","f08d47fdb88b3eaf4375eeedcac85dde05c405cc|light_bulb-809778|user-107803"]'. <0x75cfa520>
02 11/23/15 22:28:35.116 luup_log:486: (Wink_Connect::processDeviceState): Processing Device State update . <0x75cfa520>
50 11/23/15 22:28:35.117 luup_log:486: (Wink_Connect::HUB_DEVICES::findVeraDeviceByWinkId): Searching for device with Wink ID [809778]. <0x75cfa520>
50 11/23/15 22:28:35.118 luup_log:486: (Wink_Connect::HUB_DEVICES::findVeraDeviceByWinkId): found device [13]. <0x75cfa520>
50 11/23/15 22:28:35.125 luup_log:486: (Wink_Connect::processDeviceState): updating dimmer device [13] vera [881] hub [112742] connected [TRUE]. <0x75cfa520>
02 11/23/15 22:28:35.125 luup_log:486: (Wink_Connect::getLatestUpdatedValue): varName [brightness] actual value does exists - Returning actual value [1]. <0x75cfa520>
02 11/23/15 22:28:35.126 luup_log:486: (Wink_Connect::getLatestUpdatedValue): varName [powered] actual value does exists - Returning actual value [FALSE]. <0x75cfa520>
50 11/23/15 22:28:35.127 luup_log:486: (Wink_Connect::processDeviceState): updating light_bulb dimmer device [881] name [[FIRMWARE] Office Fixture] target [0] status [0] hub [112742] connected [TRUE]. <0x75cfa520>
50 11/23/15 22:28:35.127 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:Dimming1] variable [LoadLevelTarget] current [0] new [0]. <0x75cfa520>
50 11/23/15 22:28:35.128 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:SwitchPower1] variable [Target] current [0] new [0]. <0x75cfa520>
50 11/23/15 22:28:35.128 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:Dimming1] variable [LoadLevelStatus] current [100] new [0]. <0x75cfa520>
50 11/23/15 22:28:35.129 luup_log:486: (Wink_Connect::setChildVariable) Setting LoadLevelStatus [0]. <0x75cfa520>
06 11/23/15 22:28:35.130 Device_Variable::m_szValue_set device: 881 service: urn:upnp-org:serviceId:Dimming1 variable: LoadLevelStatus was: 100 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xd78758/NONE duplicate:0 <0x75cfa520>
50 11/23/15 22:28:35.159 luup_log:486: (Wink_Connect::setChildVariable) Device [881] SID [urn:upnp-org:serviceId:SwitchPower1] variable [Status] current [1] new [0]. <0x75cfa520>
50 11/23/15 22:28:35.159 luup_log:486: (Wink_Connect::setChildVariable) Setting Status [0]. <0x75cfa520>
06 11/23/15 22:28:35.160 Device_Variable::m_szValue_set device: 881 service: urn:upnp-org:serviceId:SwitchPower1 variable: Status was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xcf9240/NONE duplicate:0 <0x75cfa520>
As you can see, both “Target” and “Status” are updated for the SwitchPower1 service and “LoadLevelTarget” and “LoadLevelStatus” are updated for the Dimming1 service.
There is absolutely nothing that can be changed/fixed with the Wink Connect plugin, as it already sets the correct variables in the child device.
I would speculate that you have an error in your PLEG configuration. Check that you have the correct serviceID/variable pairs…
Specifically, the Dimming1 service does NOT use Target/Status… It uses LoadLevelTarget/LoadLevelStatus.