I have already done that, had a switch and a dimmer. Not sure if exactly like that, ill try now. Put another group address into the Dimmer chanel or leave it to one and add another chanel thats a switch?
Check to make sure there is no duplicates links in /var/lib/openhab2/jsondb/org.eclipse.smarthome.core.thing.link.ItemChannelLink.json
For items check in /var/lib/openhab2/jsondb/org.eclipse.smarthome.core.items.Item.json
The above is for Linux OS so exact location may differ. If you find a duplicate item or link then stop OH first, then edit the file to remove it.
FYI: If all items we created via files then you would only see a { } inside the file.
No groups for now. Keep it simple till itâs working with Alexa use just a switch item and dimmer. If I misunderstood your question then please post a picture of PaperUI showing all listed channels available.
I have the possibility of either filling in the switching address into the dimmer or a separate switch item instead of into the dimmer item.
Here is my ItemChanelLink.Json
{
âKitchen_LED -\u003e knx:device:9247b975:Vâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
â9247b975â,
âVâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âKitchen_LEDâ
}
},
âOffice -\u003e knx:device:9a0e73eb:Aâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
â9a0e73ebâ,
âAâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âOfficeâ
}
},
âKitchen -\u003e knx:device:d0d3f46e:Aâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
âd0d3f46eâ,
âAâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âKitchenâ
}
},
âSamsungTV_Power -\u003e samsungtv:tv:e185fad3:powerâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âsamsungtvâ,
âtvâ,
âe185fad3â,
âpowerâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âSamsungTV_Powerâ
}
},
âKitchen -\u003e knx:device:67efb2d0:Lightâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
â67efb2d0â,
âLightâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âKitchenâ
}
},
âSamsungTV_Power -\u003e samsungtv:tv:655c8dc9_4a3f_455e_b70c_73fe9f998629:powerâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âsamsungtvâ,
âtvâ,
â655c8dc9_4a3f_455e_b70c_73fe9f998629â,
âpowerâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âSamsungTV_Powerâ
}
},
âKitchen_LED -\u003e knx:device:9247b975:vâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
â9247b975â,
âvâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âKitchen_LEDâ
}
},
âOfficeTest_Light -\u003e knx:device:9a0e73eb:Câ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
â9a0e73ebâ,
âCâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âOfficeTest_Lightâ
}
},
âKitchen -\u003e knx:device:a05b4875:Aâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
âa05b4875â,
âAâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âKitchenâ
}
},
âKitchen -\u003e knx:device:67efb2d0:Lightningâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
â67efb2d0â,
âLightningâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âKitchenâ
}
},
âONVIFGenericIPCameraWithONVIFSupport_RTSPURL -\u003e ipcamera:ONVIF:2feac815:rtspUrlâ: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âipcameraâ,
âONVIFâ,
â2feac815â,
ârtspUrlâ
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âONVIFGenericIPCameraWithONVIFSupport_RTSPURLâ
}
},
âKitchen -\u003e knx:device:a05b4875:1â: {
âclassâ: âorg.eclipse.smarthome.core.thing.link.ItemChannelLinkâ,
âvalueâ: {
âchannelUIDâ: {
âsegmentsâ: [
âknxâ,
âdeviceâ,
âa05b4875â,
â1â
]
},
âconfigurationâ: {
âpropertiesâ: {
âprofileâ: âsystem:defaultâ
}
},
âitemNameâ: âKitchenâ
}
}
}
And here the items.item.json
{
âOfficeâ: {
âclassâ: âorg.eclipse.smarthome.core.items.ManagedItemProvider$PersistedItemâ,
âvalueâ: {
âgroupNamesâ: ,
âitemTypeâ: âSwitchâ,
âtagsâ: ,
âlabelâ: âwerfâ
}
I didnât see a link with the exact channel info but you have a lot of items named Kitchen. Maybe that is a reason Alexa is confused? Is there another device you can use to test with?
I have just used your example and renamed it and changed chanelID, its working now. Do you know how I can say âAlexa, Kitchen Spots Onâ and âAlexa, Kitchen Spots 100â or âAlexa, Kitchen Spots 50â instead of âAlexa, Kitchen Spots Light Level 50â?
Good to hear.
The name in my example is âBed Room Light Levelâ so you should be able to change the name to just âKitchen Light Levelâ, âKitchen Brightnessâ or whatever you like.
You can also change the name Alexa uses via the Alexa app.
Figured it out, I grouped the Light level and Light switch to one group within Alexa so now its âAlexa, turn on Kitchen Lightsâ or âAlexa, Kitchen Lights to 50%â and it turns them on or dims them to 50% respectively. Thank you very much for the help!
But you havenât tried the V3 syntax yet.
With this you can ask Alexa to âTurn Light Switch âŠâ on or off as well as âSet Light Switch to âŠâ a certain percentage.
Dimmer LightSwitch "Light Switch" {alexa="PowerController.powerState,BrightnessController.brightness"}
The item would look like this:
Dimmer BedroomLight_Level "Bedroom Light Level [%.0f %%]" <light> ["Lighting"] { channel="mqtt:topic:pibroker:zigbee2mqtt:dimmer", alexa="PowerController.powerState,BrightnessController.brightness" }
Sorry, whats the difference? Feeling stupid asking this question
You can use just the Dimmer item to control both ON/OFF and Brightness. My example above was an old copy no longer used and the main objective was to get Alexa to control. Now it works you can optimize it with alexa=âPowerController.powerState,BrightnessController.brightnessâ.
I dont understand that part, incapable. Sorry
Remove the device from the Alexa app then change the item configuration and rediscover it with the app.
Item example:
Dimmer BedroomLight_Level "Bedroom Light Level [%.0f %%]" <light> ["Lighting"] { channel="mqtt:topic:pibroker:zigbee2mqtt:dimmer", alexa="PowerController.powerState,BrightnessController.brightness" }
You are only adding the alexa=âPowerController.powerState,BrightnessController.brightnessâ part to the end of your dimmer item. You can now comment out the switch item and have full control with single Dimmer item.
Oh okay, Thank you very much!
I just tried adding that behind the dimmer item, and commented out the switches. Alexa shows them on but they dont actually turn on. Any clue?
If you deleted the light in Alexa app and rediscovered then you may also need to move the item to a new file or rename the existing file. After the file move/rename then rediscover with the app and see if that helps.
Only other thing would be the switch in OH is hanging around in the cache so stopping OH and cleaning cache would fix that but try the above first.
During the process of commenting out the adjusted dimmer in order to have it working temporarily, I think I did something I shouldnt have. Now the KNX.items file wont create any items nor will it link them. Have you got any idea on how to fix it?
Switch KitchenSpots âKitchen Spotsâ [âLightingâ] { channel=âknx:device:233be9c4:Vâ, expire=â120m,command=OFFâ }
//Dimmer KitchenSpotsLightLevel âKitchen Spots Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:233be9c4:Fâ, alexa=âPowerController.powerState,BrightnessController.brightnessâ }
Dimmer KitchenSpotsLightLevel âKitchen Spots Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:233be9c4:Fâ }
Switch KitchenLED âKitchen LEDâ [âLightingâ] { channel=âknx:device:da63c065:Vâ, expire=â120m,command=OFFâ }
//Dimmer KitchenLEDLightLevel âKitchen LED Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:da63c065:Fâ, alexa=âPowerController.powerState,BrightnessController.brightnessâ }
Dimmer KitchenLEDLightLevel âKitchen LED Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:da63c065:Fâ, }
Switch DiningRoom âDining Roomâ [âLightingâ] { channel=âknx:device:4c14aa0c:Fâ, expire=â120m,command=OFFâ }
//Dimmer DiningRoomLightLevel âDining Room Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:4c14aa0c:fâ, alexa=âPowerController.powerState,BrightnessController.brightnessâ }
Dimmer DiningRoomLightLevel âDining Room Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:4c14aa0c:fâ }
Switch LivingRoomSpots âLiving Room Spotsâ [âLightingâ] { channel=âknx:device:d2f04964:Fâ, expire=â120m,command=OFFâ }
//Dimmer LivingRoomSpotsLightLevel âLiving Room Spots Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:d2f04964:Dâ, alexa=âPowerController.powerState,BrightnessController.brightnessâ }
Dimmer LivingRoomSpotsLightLevel âLiving Room Spots Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:d2f04964:Dâ}
Switch LivingRoomLED âLiving Room LEDâ [âLightingâ] { channel=âknx:device:d2f04964:Tâ, expire=â120m,command=OFFâ }
Dimmer LivingRoomLEDLightLevel âLiving Room LED Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:d2f04964:Zâ}
//Dimmer LivingRoomLEDLightLevel âLiving Room LED Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:d2f04964:Zâ, alexa=âPowerController.powerState,BrightnessController.brightnessâ }
//Switch Entrance âEntranceâ [âLightingâ] { channel=âknx:device:8cf3d7bd:Râ, expire=â120m,command=OFFâ }
//Dimmer EntranceLightLevel âEntrance LED Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:8cf3d7bd:Tâ, alexa=âPowerController.powerState,BrightnessController.brightnessâ }
Dimmer EntranceLightLevel âEntrance LED Light Level [%.0f %%]â [âLightingâ] { channel=âknx:device:8cf3d7bd:Tâ,}
Switch RampFacadeAmbient âRamp Ambient Facadeâ [âLightingâ] { channel=âknx:device:221f7a7a:Fâ, expire=â120m,command=OFFâ }
Switch GroundFloor âGround Floorâ [âLightingâ] { channel=âknx:device:ef12bbec:Fâ, expire=â120m,command=OFFâ }
Switch FirstFloor âFirst Floorâ [âLightingâ] { channel=âknx:device:cdd0324d:Fâ, expire=â120m,command=OFFâ }
Switch AllLights âAll Lightsâ [âLightingâ] { channel=âknx:device:80833343:Fâ, expire=â120m,command=OFFâ }