Jump to content
🌟 NOTIFICATION/Benachrichtigung: Welcome to our New Store! - shelly.com 🌟 ×

Athis

New Members
  • Posts

    7
  • Joined

  • Letzter Besuch

Athis's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • Reacting Well
  • First Post

Recent Badges

2

Reputation

  1. Oh , I see that the temperature sensor is now sending information back via the Shelly PM2! I'm going to wait for the paserelle restart script to be executed... we'll see if the temperature sensor sends the data afterw
  2. Hello, So with a restart every hour, I don't lose any more information. I monitor the data exchanges on my MQTT gateway, and sometimes there were holes, not any more. I don't check all the time, but my graphs show a few consistent things now.
  3. Hello @sffbigmac, Indeed, I have “less” loss of connection, but this remains to be confirmed, I still have some doubts. Instead of setting the restart after 2 hours, I set it for 15 minutes, and for 1 day now, I don't seem to have any loss of transmission. ..... // Schedule the restart every 2 hours (7200000 ms) 900000 = 15 min let reboot_timer = Timer.set(900000, true, function() { ..... On the other hand, I suppose 15 minutes is a bit much, so I'll try 1 hour and give it another try. Have a nice day!
  4. Hello, I'm going to try this approach, restarting the gateway every 2 hours. It's not pretty, in fact it's very, very ugly :) I've got no credit for this code, a bit of reading of documentation, and a large part generated by an AI prompt (I'm doing with my limited means, sorry) // Script to restart the Shelly BLU Gateway every 2 hours // Print a message when the script starts print("Shelly BLU Gateway restart script started."); // Function to restart the device function rebootShelly() { // Call the reboot function via Shelly API Shelly.call( "Shelly.Reboot", // Use the API command to restart the device {}, function(result, error_code, error_message) { if (error_code === 0) { print("Restart command sent successfully."); } else { print("Error sending restart command: " + error_message); } } ); } // Schedule the restart every 2 hours (7200000 ms) let reboot_timer = Timer.set(7200000, true, function() { // Print a message just before restarting print("The Shelly BLU Gateway is about to be restarted."); // Call the function to restart the device rebootShelly(); }); I'll keep you posted and we'll see tomorrow :).
  5. Hello, I also bought a Shelly Blu H&T, and the Shelly Blu Gateway a few weeks ago, and sometimes I don't get any temperature info back over several hours either, and that randomly. I've just activated a Shelly Plus2PM as a second gateway too, and bam! Information is coming back through the Shelly Plus2PM. (I monitor the feedback via MQTT). I unplug/replug the Shelly Blu Gateway USB key, and re-bam! The data is now going back up via the Shelly Blu Gateway (which is physically closer than the Shelly Plus2PM ). So maybe there's a little problem with the usb gateway.
  6. THANK YOU very much I have my feedback via mqtt I didn't expect such a quick response, thank you again.
  7. Good morning, I have the same problem. Did you find a solution? For my part I use a Shelly Blu Gateway key to run this script and retrieve data from a Shelly BLU H&T temperature sensor, and then recover them in mqtt. The mqtt works because I get a message on my broker saying that the script has crashed. The script starts well...it monitors the appearance of the Blu material. It is when you press the temperature sensor button that the script crash with same error, so there is communication between the gateway and the temperature sensor. I can't find the error in the script, but I'm not an expert either. Thank
×
×
  • Erstelle neue...