I have managed to get on quite well with setting up some basics using some of my existing Tuya enabled smart devices. Initially I just added these devices around the home for simple control via Alexa, now I am adding what I have to OH and extending this with more of the same and Zigbee.
One sticking point is the thermostat. It is a MoesGo WiFi thermostat I believe that I have added to Tuya Smart (no need for yet another app). The temperature is displayed in total units of 0.5°C, so 22.5°C is displayed as 45°C, and the setpoint the same.
How can I scale this or account for it? I see there are maths functions within OH but I’m unsure where to use them for existing items like the thermostat which was auto added, the code of which I have added below. Can I just simply add something directly here or do I need to do something custom elsewhere?
UID: tuya:tuyaDevice:[/redacted/]
label: thermostat
thingTypeUID: tuya:tuyaDevice
configuration:
pollingInterval: 0
protocol: "3.3"
productId: [/redacted/]
deviceId: [/redacted/]
ip: 192.168.5.11
localKey: [/redacted/]
location: Hall
channels:
- id: ECO
channelTypeUID: tuya:switch
label: ECO
description: null
configuration:
dp: 5
- id: ChildLock
channelTypeUID: tuya:switch
label: ChildLock
description: null
configuration:
dp: 6
- id: TempSet
channelTypeUID: tuya:number
label: TempSet
description: null
configuration:
dp: 2
max: 70
min: 10
- id: Mode
channelTypeUID: tuya:string
label: Mode
description: null
configuration:
dp: 4
range: 0,1
- id: tempSwitch
channelTypeUID: tuya:string
label: tempSwitch
description: null
configuration:
dp: 103
range: 0,1
- id: TempCurrent
channelTypeUID: tuya:number
label: TempCurrent
description: null
configuration:
dp: 3
max: 100
min: 0
- id: Power
channelTypeUID: tuya:switch
label: Power
description: null
configuration:
dp: 1
- id: floorTemp
channelTypeUID: tuya:number
label: floorTemp
description: null
configuration:
dp: 102
max: 198
min: 0
- id: floortempFunction
channelTypeUID: tuya:switch
label: floortempFunction
description: null
configuration:
dp: 104