Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Alexa, Thermostat] Voice feedback after setting the target temperature provides a rounded value #861

Open
Gaspode69 opened this issue Dec 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Gaspode69
Copy link

Gaspode69 commented Dec 5, 2024

Describe the bug
When I use the ioBroker iot skill to set the target temperature of a heating thermostat and choose a non-integer value (e.g., 20.5°C), the target temperature is correctly set. However, the voice feedback from Alexa says "Automatischer Modus ist auf 21 Grad gestellt" instead of providing the expected temperature value 20.5. The value is rounded.

To Reproduce
Steps to reproduce the behavior:

  1. Use a state with role level.temperature to create an Alexa device in the iot adapter with type THERMOSTAT and include it into the group of an Echo device
  2. Say "Alexa, setze die Temperatur auf 20,5 Grad" to this Echo device
  3. Temperature is set to 20,5 degrees, but voice feedback ist "Automatischer Modus ist auf 21 Grad gestellt."

Expected behavior
Voice feedback should be "Automatischer Modus ist auf 20,5 Grad gestellt."

Screenshots & Logfiles
Logfile:

2024-12-05 08:20:56.339 - debug: iot.0 (15224) Data: "{\"header\":{\"messageId\":\"xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx\",\"namespace\":\"Alexa.ConnectedHome.Control\",\"name\":\"SetTargetTemperatureRequest\",\"payloadVersion\":\"2\"},\"payload\":{\"accessToken\":\"##########\",\"appliance\":{\"applianceId\":\"Wandthermostat_B_ro_SET_TEMPERATURE\",\"additionalApplianceDetails\":{\"friendlyNames\":\"Wandthermostat Büro SET TEMPERATURE\",\"id\":\"hm-rpc.0.OEQXXXXXXX.2.SET_TEMPERATURE\",\"role\":\"level.temperature\"}},\"targetTemperature\":{\"value\":20.5}}}"
2024-12-05 08:20:56.339 - debug: iot.0 (15224) 999999999999 ALEXA: {"header":{"messageId":"xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx","namespace":"Alexa.ConnectedHome.Control","name":"SetTargetTemperatureRequest","payloadVersion":"2"},"payload":{"accessToken":"##########","appliance":{"applianceId":"Wandthermostat_B_ro_SET_TEMPERATURE","additionalApplianceDetails":{"friendlyNames":"Wandthermostat Büro SET TEMPERATURE","id":"hm-rpc.0.OEQXXXXXXX.2.SET_TEMPERATURE","role":"level.temperature"}},"targetTemperature":{"value":20.5}}}
2024-12-05 08:20:56.340 - debug: iot.0 (15224) [ALEXA] New Request: SetTargetTemperatureRequest
2024-12-05 08:20:56.340 - debug: iot.0 (15224) [ALEXA] ALEXA temperature Percent: Wandthermostat_B_ro_SET_TEMPERATURE 20.5 grad
2024-12-05 08:20:56.340 - debug: iot.0 (15224) [ALEXA] Controlling temperature: hm-rpc.0.OEQXXXXXXX.2.SET_TEMPERATURE
2024-12-05 08:20:56.349 - debug: iot.0 (15224) [REMOTE] Send response to 'response/alexa_XXXXXXX_de/alexa: {"payload":{"targetTemperature":{"value":20.5},"temperatureMode":{"value":"AUTO"},"previousState":{"targetTemperature":{"value":20.5},"mode":{"value":"AUTO"}}},"header":{"messageId":"xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx","namespace":"Alexa.ConnectedHome.Control","name":"SetTargetTemperatureConfirmation","payloadVersion":"2"}}

state:

  "type": "state",
  "common": {
    "name": "Wandthermostat Büro.SET_TEMPERATURE",
    "def": 20,
    "type": "number",
    "read": true,
    "write": true,
    "min": 4.5,
    "max": 30.5,
    "unit": "°C",
    "role": "level.temperature",
    "smartName": {
      "de": "Wandthermostat Büro SET TEMPERATURE",
      "smartType": "THERMOSTAT"
    }
  },
  "native": {
    "CONTROL": "HEATING_CONTROL.SETPOINT",
    "DEFAULT": 20,
    "FLAGS": 1,
    "ID": "SET_TEMPERATURE",
    "MAX": 30.5,
    "MIN": 4.5,
    "OPERATIONS": 7,
    "TAB_ORDER": 8,
    "TYPE": "FLOAT",
    "UNIT": "°C"
  },
  "_id": "hm-rpc.0.OEQXXXXXXX.2.SET_TEMPERATURE",
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  },
  "from": "system.adapter.admin.0",
  "user": "system.user.admin",
  "ts": 1733385848295
}

iot Alexa device:
grafik

Versions:

  • Adapter version: 3.3.0
  • JS-Controller version: 6.0.11
  • Node version: 20.18.1
  • Operating system: Windows

Additional context
@foxriver76
I might be wrong, but the logs seem to suggest that the issue originates from the Alexa Skill. The adapter's debug log shows the correct value everywhere, and the voice feedback appears to come directly from the Skill.

@GermanBluefox
Copy link
Contributor

I hardly guess, that this is feature of Alexa Speaker and not of ioBroker.iot adapter.

@GermanBluefox GermanBluefox added the question Further information is requested label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants