Forum Replies Created
-
AuthorPosts
-
YevgenParticipant
Hello All!
Here’s a take on a switch motor for MLC. Housing can be built around to your heart’s content.
Let me know what you think.
Thanks!YevgenParticipantHi Max,
Are you holding the servo inside with Lego only? It does not pry itself off the bricks/plates when switching?YevgenParticipantI think this is by design – a failsafe. Mine goes into the Christmas mode as well until you put main power back on and put the train back in auto mode. Was the train still moving when you shut down Rocrail? I’m rebuilding my layout and probably won’t be able to test for a few days.
YevgenParticipantI believe this is the code for blinking lights once the Rocrail power goes off.
YevgenParticipantThanks Piet, I am actually looking for MQTT command reference. I’d like to take a crack at coding a light switch for a building, controlled by Rocrail.
YevgenParticipantHello All! Can anyone point me to Rocrail’s MQTT command reference? I’ve been crawling their site and found bits and pieces of information, but cannot find a comprehensive guide to how Rocrail receives and issues commands via MQTT and what they are. Thanks!
YevgenParticipantThanks for the update! I suppose it would not matter if I used one controller per one hub.
YevgenParticipantThanks, Thorsten, let me know if I can be of any use.
YevgenParticipantThanks for replying, Nikos. My issue seems to be the sequence. I can get them all connected, but only in the sequence that they are in the configuration file.
`*** DEBUG-INFO ***
WiFi + MQTT connection Status: 0
Loco 0: 60197_1 (1). Target speed: 0, current speed: 0, max speed: 0
Loco 1: 60198_1 (2). Target speed: 0, current speed: 0, max speed: 0
Loco 2: 60052_1 (3). Target speed: 0, current speed: 0, max speed: 0
next hub to initialize (if any): 2
Hub 0: macAddress=90:84:2b:17:ac:52: isConnecting()=0 isConnected()=1 status=1
Hub 1: macAddress=90:84:2b:20:ec:fb: isConnecting()=0 isConnected()=1 status=1
Hub 2: macAddress=90:84:2b:21:d6:b0: isConnecting()=0 isConnected()=1 status=1If I don’t power up and connect on esp boot Hub O, I can’t connect the other 2. Once I power up and connect it, I am able to connect the other 2. And once I have them all connected, I can disconnect and reconnect them in that sequence only. If I power up the second or third hub, but not the first, they will not connect.
Also, once disconnecting, the second and third hubs’ statuses stay at 1, but the first changes to 0
*** DEBUG-INFO ***
WiFi + MQTT connection Status: 0
Loco 0: 60197_1 (1). Target speed: 0, current speed: 0, max speed: 0
Loco 1: 60198_1 (2). Target speed: 0, current speed: 0, max speed: 0
Loco 2: 60052_1 (3). Target speed: 0, current speed: 0, max speed: 0
next hub to initialize (if any): 0
Hub 0: macAddress=90:84:2b:17:ac:52: isConnecting()=0 isConnected()=0 status=0
Hub 1: macAddress=90:84:2b:20:ec:fb: isConnecting()=0 isConnected()=0 status=1
Hub 2: macAddress=90:84:2b:21:d6:b0: isConnecting()=0 isConnected()=0 status=1
******************But if I power them down in reverse sequence, 3-2-1, then they all get reset to 0.
*** DEBUG-INFO ***
WiFi + MQTT connection Status: 0
Loco 0: 60197_1 (1). Target speed: 0, current speed: 0, max speed: 0
Loco 1: 60198_1 (2). Target speed: 0, current speed: 0, max speed: 0
Loco 2: 60052_1 (3). Target speed: 0, current speed: 0, max speed: 0
next hub to initialize (if any): 0
Hub 0: macAddress=90:84:2b:17:ac:52: isConnecting()=0 isConnected()=0 status=0
Hub 1: macAddress=90:84:2b:20:ec:fb: isConnecting()=0 isConnected()=0 status=0
Hub 2: macAddress=90:84:2b:21:d6:b0: isConnecting()=0 isConnected()=0 status=0YevgenParticipantHello Everyone! First of all, hat off to Herr Runte and the crew for sharing the code and getting us to this point of automation without going broke (Lego is doing that part)!!!
I was wandering if anyone can point me in a right direction with a small issue. I have 3 locos and 3 hubs set up – 60197, 60198, 60052, in that order in the header file. I can connect all three locos to the controller, but only in that order. If I do not power up 60197 first, the other locos will not connect.
I will check the hub names, as stated in the topic above, but that seems to be a different issue.
Thanks!
-
AuthorPosts