Added room hint to google assistant
This commit is contained in:
parent
7747a10959
commit
1dec30e2fa
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ public class SmartHomeImpl extends SmartHomeApp implements OAuth2TokenRegistrati
|
||||||
.setName(device.getName())
|
.setName(device.getName())
|
||||||
.build())
|
.build())
|
||||||
.setWillReportState(true)
|
.setWillReportState(true)
|
||||||
//.setRoomHint(sensor.getRoom().getName())
|
.setRoomHint((device.getRoom() != null ? device.getRoom().getName() : ""))
|
||||||
.setDeviceInfo(
|
.setDeviceInfo(
|
||||||
DeviceProto.DeviceInfo.newBuilder()
|
DeviceProto.DeviceInfo.newBuilder()
|
||||||
//.setManufacturer((String) device.get("manufacturer"))
|
//.setManufacturer((String) device.get("manufacturer"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue