Poer thermostat/heating control integration in HomeAssistant

It encrypted , i think. It any web interface, or only android app?

No just android app and Alexa and Google Assistant integration. I’m thinking if is possible to get data from Google Assistant like Google Home app do.
In Google Home app I’m able to view the thermostat temperature and humidity… so if there are some Google Smart Home API we can get data from it, but I not find anything

I have write them on WhatsApp to ask for HA integration.

1 Like

Hi, any news?

regards

Yes! Im interested too!!

Any updates?

I’m interested too.
I have:

  • one POER Gateway PTG10
  • four POER PTV30 Smart Radiator Thermostat Valve
    They work fine with their app and everything is ok, but I want to integrate with Home Assistant to add all my thinks in one app and one tablet.
    Does anyone have an idea how they can all be integrated?
    Thank you in advance.

I can read current temperature from google Home!
We need

  1. GitHub - tronikos/google_assistant_sdk_custom: Fork of Google Assistant SDK integration to allow getting responses from commands to Google Assistant
  2. pyscipt
  3. Create custom script
def Set_With_Temp_Attributes(e, v, title):
	attr = {
				"unit_of_measurement": "°C",
				"device_class": "temperature",
				"icon": "mdi:thermometer",
				"friendly_name": title
			}
	
	state.set(e, value=v, new_attributes=attr)

def Parse_Poer_temp(a, list_p):
	import re
	
	for p in list_p:
		parsed = False
		r = re.findall(p, a)
		if len(r) == 1:
			if len(r[0]) == 2:
				parsed = {'floor1': float(r[0][1]), 'floor2': float(r[0][0])}
	
		if parsed:
			return parsed
			
	return parsed
	
@time_trigger('period(now, 30min)')
def Get_Poer_Info():
	q = "what is the temperature of floor 1 and what is the temperature of floor 2"
	p = [
		"Heating is set to 15 degrees on Floor 2, with a current temperature of (.*) degrees. It's currently (.*) degrees",
		"Heating is set to 15 degrees on Floor 2, with a current temperature of (.*) degrees. Heating is set to 17 degrees on the Floor 1, with a current temperature of (.*) degrees."
		]
	#a1 = Heating is set to 15 degrees on Floor 2, with a current temperature of 15.5 degrees. Heating is set to 17 degrees on the Floor 1, with a current temperature of 16.5 degrees.
	#a2 = Heating is set to 15 degrees on Floor 2, with a current temperature of 15.5 degrees. It's currently 16.5 degrees
	
	r = google_assistant_sdk_custom.send_text_command(command=q, return_response=True)
	try:
		Text = r['responses'][0]['text']
		parsed = Parse_Poer_temp(Text, p)			
		if parsed:
			Set_With_Temp_Attributes('sensor.poer_floor1_temperature', parsed['floor1'], "Floor 1")
			Set_With_Temp_Attributes('sensor.poer_floor2_temperature', parsed['floor2'], "Floor 2")
		else:
			log.info('Unparsed!!!!')
			log.info(Text)
	except Exception as err:
		e = f"Unexpected {err=}, {type(err)=}"
		log.info(e)
		log.info(r)

I have two devices in google home named “Floor 1” and “Floor 2”. Some times google send different answers, so multiple patterns are used.

After 20+ queries google stop working with message “Sorry, it looks like Poer Smart is unavailable right now.”
Hope it come back working shortly :slight_smile:

Some more useful queries. Some of them never work for me, but should

q = what is the mode of floor 1 and floor 2
# Floor 2 and the Floor 1 are set to heat.
# Floor 2 is set to heat. The Floor 1 is set to auto.

q = "what is the status of floor 1 and floor 2"
#  I can't reach the Floor 1 right now. Sorry, it looks like the Floor 1 isn't available right now.

q = "whats the floor 1 and floor 2 Humidity"
#  I can't reach the Floor 1 right now. Sorry, it looks like the Floor 1 isn't available right now.