Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. PC fährt einfach wieder hoch

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    677

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

PC fährt einfach wieder hoch

Scheduled Pinned Locked Moved Skripten / Logik
1 Posts 1 Posters 324 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ripoli
    wrote on last edited by
    #1

    Hallo Freunde.

    Habe mir ein Script aus dem Internet geholt, welches den PC startet und herunter fährt.

    Das herunterfahren funktioniert auch hervorragend über den Scene Editor, allerdings fährt mein PC ohne Signal über den Szene Editor. immer wieder hoch.

    Woran kann das liegen?

    Hier mal das Script:

    ! createState("javascript.0.PCstarten",{
    ! type: 'boolean',
    ! def: false
    ! });
    ! createState("javascript.0.PCherunterfahren",{
    ! type: 'boolean',
    ! def: false
    ! });
    ! var wol = require('wake_on_lan');
    ! var myPC = "xx:xx:xx:xx:xx:xx";
    ! var down = "sudo net rpc shutdown 'Der PC wird in 20 Sekunden ausgeschaltet' -I 192.168.xxx.xx -U xxxxxxi%xxxxxx -t 20 -f";
    ! on("javascript.0.PCstarten", function (obj) {
    ! if (obj.state.val) {
    ! wol.wake(myPC);
    ! setState("javascript.0.PCstarten",false);
    ! log("Script WOL - PC aufgeweckt", "info");
    ! }
    ! });
    ! on("javascript.0.PCherunterfahren", function (obj) {
    ! if (obj.state.val) {
    ! exec(down);
    ! setState("javascript.0.PCherunterfahren", false);
    ! log("PC wird in 20 sec. heruntergefahren", "info");
    ! }
    ! });

    ! scenes.0 2018-01-23 15:35:32.271 info restartAdapter
    ! scenes.0 2018-01-23 15:35:30.414 info restartAdapter
    ! scenes.0 2018-01-23 15:35:29.795 info restartAdapter
    ! javascript.0 2018-01-23 15:35:14.265 info script.js.Computer: PC wird in 20 sec. heruntergefahren

    ![](</s><URL url=)https://i.imgur.com/qHRQ7cH.png?1" />

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Support us

    ioBroker
    Community Adapters
    Donate

    329

    Online

    32.7k

    Users

    82.6k

    Topics

    1.3m

    Posts
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Home
    • Recent
    • Tags
    • Unread 0
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe