May I ask if you have tried to use the homematic.set_device_value service (for locking and unlocking) I have mentioned above? That way you wouldn’t have to use the program in the CCU, just the variable for the status. Note, that I don’t know if what I have suggested above actually works. I just assume it might based on how the parameter (LOCK_TARGET_LEVEL) is defined in the paramset description.
Thx.
The crazy thing is that the device does not appear in honeassistant. There is no entity created. When I have some time early next week I will post my integration config. I might miss sth. If that would work the solution would be much smarter!
If you have any HomeMatic devices visible, then you should also have the homematic.*-services. That’s not an entity, it’s the domain where the integration provides the services for manual usage.
can you give a hint, where those “service” should have to go ?
does address,channel, param, value go to data-section of a service definition ?
into configuration.yaml…
the service set_device_value is mentioned in homematic doku on hass.io, but under action…
Everything I do leads to “there is a configuration error”… It would be helpful to show (and appreciated) what you put where (as snippets) to make it work ?
Maybe this way:
e.g.: configuration.yaml
service: homematic.set_device_value
data:
address: serial
channel:1
param: LOCK_TARGET_LEVEL
value: open
(the dokus miss always the part, what this is, what they are talking about… they throw a lot of words and params into a bowl, and never explain what it is… e.g. “address”… in the examples (homematic) there is always LEQ123456… how one can conclude from that, that this should be the SerialNo of Device… all devices of homematic have a MAC-address looking SerNo, why there is a “LEQ”-Prefix in the example? they should mention it, what the param means - very hard and very very frustating to come to an understanding by reading docs if the crafted that way)
That’s how the serials of the old HomeMatic devices looked like. The MAC-like addresses were introduced with HomeMatic IP. And back then when we started the HomeMatic integration (and documentation) the old devices were what the users primarily had. So to those people it was clear what this placeholder was referring to.
I tested it and it worked:)
I can confirm that set_device_value is working with the mentioned values.
That way it is much leaner - in addition to the lock template in HA, i now just have the status variable and a program setting the status var.
I just recognized, that changing the status in HA after pressing lock or unlock needs 10-20 seconds - any idea where this could be improved?
Thanks @tobiasm for your solution and also thanks to @danielperna84 for his nice wrap-up.
After some fiddling around, I managed to get all up and running by
adding daniels template into configuration.yaml,
creating a status variable in homematic,
creating a program in Homematic (see attached screenshot)
(which sets the value of the status variable to ‘LOCKED’ and ‘UNLOCKED’, respectively - which is kind of counter-intuitive, as the values send from home assistant to homematic are ‘0’ and ‘1’ ) , and finally
creating a script to use DLD’s ability to “open” the door be holding the latch for a short period of time.
Interestingly, I had to explicitly code the value_type to int! Otherwise it didn’t work…
Great! Any chance to get this also processed for the HMIP Access Point integration? I‘ve raised already a pull request but it has beeb closed as i giess i mossed something:-(
Would be so great to have it also integrated straight with the HMIP AP .
Any chance i can support in it? Thanks!
sorry for this stupid question: But is it possible to create a switch out of the DLD Lock_state entity?
I want to lock & unlock my dld via a homeassistant button.
many thanks in advance