Seite 1 von 1

Raspberry Pi mit pimatic steuern - Hilfe benötigt

Verfasst: Sa 22. Nov 2014, 15:01
von Nicki
Mahlzeit,
pimatic hat zwar ein schönes UI, leider ist das Plugin mit dem man "Knopp xy gedrückt" seriell nach Außen leiten kann recht inkonsequent zusammengestrickt:
https://github.com/dfischbach/pimatic-a ... ome.coffee

Schalter geht, Taster ("Keypad") hat standardmäßig nur ein nutzloses "emit".
Kann mir jemand sagen, warum das so modifiziert:

Code: Alles auswählen

class AHKeypad extends env.devices.ButtonsDevice


    constructor: (@config, demo) ->
     super(@config)


    handleReceivedCmd: (command) ->
      params = command.split " "
      return false if params.length < 2 or params[0] != "K"
      key = params[1]
      #TODO: Check if button is on @config
      #@emit "button", key
      cmd = 'F '
      atHomePlugin.sendCommand key

      return true
immer noch nichts ausgeben will?
Der Gerät versucht noch nicht einmal, etwas zu senden :evil: