NEWS
Siemens HomeConnect > Homekit (yahka) coupling help FIXED
-
a couple of questions:
- which version of the Yahka Adapter do you have installed ?
- Will it be ok to use the "An" (i.e. On) and "Aus" (i.e. Off) states of the Siemens system, or do you need to use the "Standby" state ?
In either case, the solution should be:
if you want to set it to "standby" rather than "off", you need to change the line
return "Aus"
to
return "Standby"
Since the home kit Switch can only show 2 states, you will not be able to distinguish between "standby" and "off" in any case.
The service subtype can remain empty (is for me for all cases)
On the name, you can either link it to a state or set a static value. (select conversion "passthrough") If you don't, the switch in HomeKit will have the service name as its initial name, but this can be overridden in the iOS app.
The "on" field is the one which actually reacts to the switch state.I hope this works for you.
A.
-
@Asgothian Hi, thanks for your reply!
I have Homekit yahka Available version 0.9.2 Installed version: 0.9.2
I filled in your example advise, but no luck. No reaction from the device. And error in the log:
homeconnect.0 2020-02-05 20:10:23.792 info (4438) 409: Key BSH.Common.Setting.PowerState has unknown enum type or enum member Standby.
homeconnect.0 2020-02-05 20:10:19.526 info (4438) 409: Key BSH.Common.Setting.PowerState has unknown enum type or enum member An.
-
@ydn Can you please paste the Raw Data for the Datapoint in question (as shown in the example screenshot for a different datapoint)
-
{ "from": "system.adapter.homeconnect.0", "user": "system.user.admin", "ts": 1680671865678, "common": { "name": "Energiezustand", "type": "string", "role": "indicator", "unit": "", "write": true, "read": true, "states": { "BSH.Common.EnumType.PowerState.MainsOff": "Aus", "BSH.Common.EnumType.PowerState.Off": "Aus", "BSH.Common.EnumType.PowerState.On": "An", "BSH.Common.EnumType.PowerState.Standby": "Standby" } }, "native": {}, "acl": { "object": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator", "state": 1636 }, "_id": "homeconnect.0.SIEMENS-HM836GNB6-68A40E31957E.settings.BSH_Common_Setting_PowerState", "type": "state" }
-
@ydn
Please try to replace the "An" with "On", and the "Off" with "Aus" in both script stubsA.
-
@Asgothian
Also, if that doesn't work, please try the complete state names ("BSH.Common.EnumType.PowerState.On", "BSH.Common.EnumType.PowerState.Off")A.
-
@Asgothian sagte in Siemens HomeConnect > Homekit (yahka) coupling help wanted.:
BSH.Common.EnumType.PowerState.On
I think you need a conversation script
return value ? "BSH.Common.EnumType.PowerState.On":"BSH.Common.EnumType.PowerState.Off"
-
Yeah got it working! @Asgothian
It needs to be:
return value==="BSH.Common.EnumType.PowerState.On"
and the lower field:
if (value) return "BSH.Common.EnumType.PowerState.On"
return "BSH.Common.EnumType.PowerState.Standby" -
Case closed.
-
=== PLEASE READ ===
Please describe the changes proposed in the pull request and
reference the issue,
the pull request relates to (if applicable).