NEWS
[Gelöst] Keymatic Fernbedienung mit SPS
-
Ich dachte das wär es nun und ich weiss wie es geht und schon gehts eben nicht.
Ich habe nun das hier:
var idSrc = "hm-rpc.0.OEQ0119854.3.PRESS_SHORT"; var idDst = "s7.0.Outputs.0.Lin_Licht"; var Flag = "s7.0.Markers.0.Flag_Licht"; subscribe ({id: idSrc, val:true}, function(data) { log(getState(idDst).val); if (getState(idDst.State).val === false ) { setState(idDst,true); log(getState(idDst).val); log("True setzen"); } else { setState(idDst,false); log(getState(idDst).val); log(" else false setzen"); } });Es wird ausschließlich der Else teil bearbeitet. idDst ist definitiv false, aber wird nicht erkannt. Habe es auch mit
if (getState(idDst.State).val == "0" )versucht. Gleiche Ergebnis. Im IOBroker Log habe ich auch eine Warnung "State "undefined" not found"
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login