Added room hint to google assistant

This commit is contained in:
Ziver Koc 2023-01-12 00:57:56 +01:00
parent 7747a10959
commit 1dec30e2fa

View file

@ -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"))