Thanks to @steve1 in
I’ve been able to update my scripts to output syntactically correct Things and Items for the Lutron OH2 binding. While there are gaps in the documentation, @actong88 is correct that this is not a binding issue. From what I can tell, the binding does not parse the file at all. It just “takes” the configuration values that the parser populates and uses them.
I’ve written simple Bash scripts that take tab-separated value input of the integration ID, “friendly” name, and room for the (Caseta) dimmers and remotes and create the .things
and .items
files from them. PM me if you’d like them.
I haven’t delved into “tags” yet, but the referenced syntax specifications make it clear how they would be added. I’m poking around with defining “phantom” channels on the dimmers to hold state information to be able to emulate the increase/decrease functionality of the dimmers and remotes. To be clear, these channels are outside of the binding’s prevue and will be managed by rules/scripts.
Here are some examples from my current configuration.
##things
###bridge
lutron:ipbridge:SmartBridgePro "Smart Bridge Pro" @ "Home" [ ipAddress="smartbridgepro.example.com", user="lutron", password="integration" ]
###dimmer
lutron:dimmer:Bedroom_East_Cans "Bedroom East Cans" (lutron:ipbridge:SmartBridgePro) @ "Bedroom" [ integrationId=2 ]
###keypad
lutron:keypad:Bedroom "Bedroom" (lutron:ipbridge:SmartBridgePro) @ "Bedroom" [ integrationId=3 ]
##items
###dimmer
Dimmer caseta_dimmer_Bedroom_East_Cans "Dimmer Bedroom East Cans [%.0f]" <dimmablelight> (group_room_Bedroom) { channel="lutron:dimmer:Bedroom_East_Cans:lightlevel" }
###switches
Group group_pico_Bedroom
Switch pico_Bedroom_on "Pico Bedroom On" <switch> (group_pico_Bedroom) { channel="lutron:keypad:Bedroom:button2" }
Switch pico_Bedroom_preset "Pico Bedroom Preset" <switch> (group_pico_Bedroom) { channel="lutron:keypad:Bedroom:button3" }
Switch pico_Bedroom_off "Pico Bedroom Off" <switch> (group_pico_Bedroom) { channel="lutron:keypad:Bedroom:button4" }
Switch pico_Bedroom_up "Pico Bedroom Up" <switch> (group_pico_Bedroom) { channel="lutron:keypad:Bedroom:button5" }
Switch pico_Bedroom_down "Pico Bedroom Down" <switch> (group_pico_Bedroom) { channel="lutron:keypad:Bedroom:button6" }