SmartThings Community

Eurotronics Spirit TRV


(Michael) #81

Hi,

I am a new ST user from Germany and have now through @dougalAgain a working Eurotronics TRV over ST, great work, thank you!

Has anyone managed to control this via voice commands via ALEXA? Unfortunately, this does not work for me, ALEXA does not recognize the thermostat properly :frowning:

I would be very grateful for your help :slight_smile:

Michael


(Mark C) #82

i think you need the set heating setpoint capability

hope you dont mine ive done some tweeks, adopt as you feel


(Michael) #83

Hello Mark, Thank you for your tip, I’ve unfortunately only seen your message today, try it tonight but just once :slight_smile:
Best regards
Michael


#84

Hi @mark_cockcroft, great work. That seems to have partially solved the Alexa control.

I can now use a command like “Set the temperature in the office to 20” and the device does get updated - I can see the change in the Smartthings app and IDE.
Although Alex does reply “Hmm, Office TRV is not responding”
Additionally, if I ask “Whats the temperature in the Office” I get the same response.

So to me that looks like the additional capabilities you added makes Alexa aware she can use these devices for temperature control/reporting - just not sure about the “Not responding responses”
My device is called “Office TRV” in a room called “Office”. (I have two others in different rooms and these behave in the same way with the new device handler)

Many thanks for your work - and hope my responses are useful

Phil


(Mark C) #85

can you post the ide log for the trv and alex at the time. i have noticed that when i use google or a rotue to change the temp the get setpoint command (in def setheating)is never process and you have to wait for the next refresh/poll to see if it is taken, no idea why


#86

Hi Mark,

All I get in the IDE logs for that device is this:
10:07:27: info Report recived ThermostatSetpointReport(setpointType: 1, scaledValue: 20.0, scale: 0, precision: 1, value: [0, 200], reserved01: 0, size: 2)
10:07:24: trace Setting Temp to 20.0

I’m not sure how to get any logs from Alexa

Phil


(Mark C) #87

it should be in the ide log some where
image


#88

Ahh…doh…there was me hunting on the Amazon side of the fence rather than in ST…

Here are the logs for the Amazon Alexa (UK) device in the IDE for the same timespan:

10:10:07: debug handlePostV3

10:10:04: debug handlePostV3

10:09:53: debug handlePostV3

10:09:36: debug handlePostV3

10:09:36: debug handlePostV3

10:09:36: debug handlePostV3

10:09:36: debug handlePostV3

10:07:40: debug handlePostV3

10:07:40: debug handlePostV3

10:07:40: debug handlePostV3

10:07:40: debug handlePostV3

10:07:27: info postEventToEndpoint: event successfully posted.

10:07:27: debug Property Change Event thermostatSetpoint: 20.0 (source: DEVICE)

10:07:27: info postEventToEndpoint: event successfully posted.

10:07:27: debug Property Change Event heatingSetpoint: 20.0 (source: DEVICE)

10:07:24: info postEventToEndpoint: event successfully posted.

10:07:24: debug Property Change Event DeviceWatch-DeviceStatus: online (source: DEVICE)

10:07:24: info postEventToEndpoint: event successfully posted.

10:07:24: debug Property Change Event DeviceWatch-DeviceStatus: online (source: DEVICE)

10:07:23: debug set to 20.0 (heat)

10:07:23: debug TargetSetPoint after rounding off to the nearest 0.5 : 20.0 C

10:07:23: debug currentHeatingSetpoint: 19.5 currentThermostatSetpoint: 19.5

10:07:23: debug Mode: heat TemperatureScale: C

10:07:23: debug Set Office TRV setpoint to [targetSetpoint:[scale:CELSIUS, value:20]]

10:07:23: debug handlePostV3


(Mark C) #89

its probably the delay between setting and then getting, its set at around 3 seconds as that it the time i found relibaly get all the messages processed on poll/refresh


#90

Is that this bit?
private secureSequence(commands, delay=2800)

Excuse the brain dump here…but trying to show my thought process…
Having a bit of a think if I get the same reply from Alexa (Office TRV is not responding) on a set and a get temperature…and the set in effect does a set and get combined…and the temp does actually get set…then maybe the issue can be limited to the get part

So asking Alexa what the temperature in the office is, I’d expect to see logging from both Alexa and the Office TRV in the IDE, but all I actually see in the log is handlePostV3 from Alexa…nothing from the TRV
12:08:59: debug handlePostV3

So could that mean its something in the POLL command?
If I just sit and wait long enough I do see:

12:13:05: info Report recived basic mode is 255
12:12:46: info Report recived - SwitchMultilevelReport(value: 5) - - Valve open ‘5’%
12:12:44: info Report recived ThermostatSetpointReport(setpointType: 1, scaledValue: 19.5, scale: 0, precision: 1, value: [0, 195], reserved01: 0, size: 2)
12:12:41: info Report recived mode is 1
12:12:39: info Report recived SensorMultilevelReport(scale: 0, sensorValue: [7, 145], precision: 2, sensorType: 1, scaledSensorValue: 19.37, size: 2)
12:12:37: trace POLL [SensorMultilevelGet(reserved212: 0, scale: 1, sensorType: 1, reserved110: 0), ThermostatModeGet(), ThermostatSetpointGet(setpointType: 1, reserved01: 0), SwitchMultilevelGet()]

(I’d hate to think that the reply is 4 minutes after the request!!)


#91

Actually, looking at it a bit more the new set value is reflected in the alexa app on my phone at around the time i see the
12:31:22: info Report received ThermostatSetpointReport(setpointType: 1, scaledValue: 19.5, scale: 0, precision: 1, value: [0, 195], reserved01: 0, size: 2)
which is within a couple of seconds of the ‘set’

so i am convinced that alexa must be sending a second command after the set temp which is the same as the one it sends when you ask for the temperature…and its that that its not getting a reply on…


(Mark C) #92

ive updated it in github,
like i said i have notice that when setting temp trough routines etc it then never processed a get command, untill the next poll, this is working for me now


#93

Hmm…I still get the same result (Office TRV is not responding), although clearly in the logs Alexa is seeing the set and result…

Alexa Logs:
12:59:51: debug handlePostV3
12:59:48: debug handlePostV3
12:59:46: info postEventToEndpoint: event successfully posted.
12:59:46: debug Property Change Event heatingSetpoint: 19.5 (source: DEVICE)
12:59:46: info postEventToEndpoint: event successfully posted.
12:59:46: debug Property Change Event thermostatSetpoint: 19.5 (source: DEVICE)
12:59:45: debug handlePostV3
12:59:42: debug handlePostV3
12:59:40: debug handlePostV3
12:59:36: debug handlePostV3
12:59:33: debug handlePostV3
12:59:30: debug handlePostV3
12:59:27: debug handlePostV3
12:59:25: debug set to 19.5 (heat)
12:59:25: debug TargetSetPoint after rounding off to the nearest 0.5 : 19.5 C
12:59:25: debug currentHeatingSetpoint: 20.0 currentThermostatSetpoint: 20.0
12:59:25: debug Mode: heat TemperatureScale: C
12:59:25: debug Set Office TRV setpoint to [targetSetpoint:[scale:CELSIUS, value:19.5]]
12:59:25: debug handlePostV3
12:59:24: debug handlePostV3
12:59:21: debug handlePostV3

TRV Logs:
12:59:46: info Report recived ThermostatSetpointReport(setpointType: 1, scaledValue: 19.5, scale: 0, precision: 1, value: [0, 195], reserved01: 0, size: 2)
12:59:46: debug tell me opersting state heating
12:59:46: debug tell me opersting mode heat
12:59:25: trace Setting Temp to 19.5, [ThermostatSetpointSet(setpointType: 1, scaledValue: 19.5, scale: 0, precision: 1, value: [0, 195], reserved01: 0, size: 2), ThermostatSetpointGet(setpointType: 1, reserved01: 0)]
12:59:25: debug set heatingpoint start 19.5


(Mark C) #94

and the trv log shows you are geting an updated response within a few sconds, which is better. but dont know what she is wanting back


(Mark C) #95

ive cleaned it up abit and updated. id update it an leave it a bit, ST can get a bit funny (tempermental) when you are doing some playing.
come back in an hour or so . mine seam to be 4 second between setting and geting a resposne back from the device with a 2 second delay programed in


#96

OK cheers Mark,

I’ve updated and I’ll leave well alone for a bit and set what occurs later on this afternoon

Thanks again

Phil


#97

Still getting the same thing unfortunately…set works and I see it reflected in the alexa app and in ST, but get the response that Office TRV is not responding
When asking for temperature same thing as before too…Office TRV is not responding

if I kill the alexa app and change the set point, then open the alexa app it will pull back the correct set temp into the app…so its just the voice command thats saying Office TRV is not responding.
Interestingly all I see in live logs (for Alexa or Office TRV) when launching alexa app having killed the alexa app and updating temp via ST is:
15:19:33: debug handlePostV3


(Mark C) #98

ill test it with google when i get home


(Mark C) #99

Google seam to respond ok to set and get


(Mark C) #100

without knowing what alexa is asking for im not sure what to suges/do. i had a look in the smartthings github to see if the intergartion smart app was the but cant find it there