Sinope Thermostat - Set Time and outside temp

Hello.

I have a few Sinope thermostats connected through Zigbee. I’m trying to have them display:

  • Local Time
  • Outside temp

I found a config file for SmartThings that give out the cluster info to set these info, however, they are not listed in Home Assistant. How may I set them ?

Here is the code snippet for Time:

       //the newer thermostats uses the time cluster, but the older ones need to receive the hour
      	def mytimezone = location.getTimeZone()
        long dstSavings = 0
        if(mytimezone.useDaylightTime() && mytimezone.inDaylightTime(new Date())) {
          dstSavings = mytimezone.getDSTSavings()
		}
		//To refresh the time
		long secFrom2000 = (((now().toBigInteger() + mytimezone.rawOffset + dstSavings ) / 1000) - (10957 * 24 * 3600)).toLong() //number of second from 2000-01-01 00:00:00h
		long secIndian = zigbee.convertHexToInt(swapEndianHex(hex(secFrom2000).toString())) //switch endianess
		cmds += zigbee.writeAttribute(0xFF01, 0x0020, 0x23, secIndian, [mfgCode: 0x119C])
                        
		sendZigbeeCommands(cmds)


Temperature

cmds += zigbee.writeAttribute(0xFF01, 0x0011, 0x21, 10800)//set the outdoor temperature timeout to 3 hours
        if (outdoorTemp < 0) {
            outdoorTempValue = -outdoorTemp*100 - 65536
            outdoorTempValue = -outdoorTempValue
            outdoorTempToSend = zigbee.convertHexToInt(swapEndianHex(hex(outdoorTempValue)))
            cmds += zigbee.writeAttribute(0xFF01, 0x0010, 0x29, outdoorTempToSend, [mfgCode: 0x119C])
        } else {
            outdoorTempValue = outdoorTemp*100
            int tempa = outdoorTempValue.intdiv(256)
            int tempb = (outdoorTempValue % 256) * 256
            outdoorTempToSend = tempa + tempb
            cmds += zigbee.writeAttribute(0xFF01, 0x0010, 0x29, outdoorTempToSend, [mfgCode: 0x119C])

Cluster 0xFF01 - In does not list anything in Home Assistant.

Well for some reason thermostats started showing time some time today !

That is odd. Anyway. What about outside temp ? :slight_smile:

Solution here: Sinope Line Voltage Thermostats - #682 by EtienneMD