This is a great app/driver and I've been playing with it a lot. I have a couple requests that I got working, but I am unsure if they go with correct app/driver design, etc., so I'm not sure if they would be a good PR but I've been playing with remote
and other binary_sensor
.
- I have an Xbox One Remote device in my HA that is setup through the Xbox integration. I added the following code to the driver:
case "remote":
and
remote: [type: "Generic Component Switch", event: [[name: "switch", value: newVals[0], type: origin, descriptionText:"${friendly} was turn ${newVals[0]} [${origin}]"]]],
and the following code to the app:
if(["fan", "switch", "light", "binary_sensor", "sensor", "device_tracker", "cover", "lock", "remote"].contains(domain))
And it works to turn the Xbox on and off from within Hubitat. While this doesn't cover remote/toggle and remote/send_command, it does still work for remote/turn_on and remote/turn_off.
- I have a SmartDry clothes dryer sensor through a custom YAML integration and while
motion
works when setup through a binary_sensor, it makes more human readability sense for this to be amoving
sensor in HA so I got it working by adding the following to the driver:
moving: [type: "Generic Component Motion Sensor", event: [[name: "motion", value: newVals[0] == "on" ? """active""":"""inactive""", descriptionText:"${friendly} is updated"]]],
This works just as well as motion
and might be able to apply to other motion-esque entities like vibration
etc.
If these are within the scope of the project I can add to a PR, I'm just new to this so I'm learning.