Page 1 of 1

Soap control messages from ESP Easy?

Posted: 02 Jun 2018, 01:29
by xury
Hi
I am curious if it is possible to send soap messages from espeasy to Panasonic Viera TV to control it as in Domoticz. But directly from esp device.
Has anyone tried or opened feature request?
Ok I did some research and now be able to send command from Hercules using captured frame:

Code: Select all

POST /nrc/control_0 HTTP/1.1
Host: 192.168.22.100:55000
SOAPACTION: "urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"
Content-Type: text/xml; charset="utf-8"
Content-Length: 315

<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1"><X_KeyEvent>NRC_CH_DOWN-ONOFF</X_KeyEvent></u:X_SendKey></s:Body></s:Envelope>
So I send command NRC_CH_DOWN-ONOFF to switch channel down on TV.
I have list of all commands:

Code: Select all

"""List of static keys values
    """
    APPS = 'NRC_APPS-ONOFF'
    ASPECT = 'NRC_ASPECT-ONOFF'
    BLUE = 'NRC_BLUE-ONOFF'
    CANCEL = 'NRC_CANCEL-ONOFF'
    CC = 'NRC_CC-ONOFF'
    CHANNEL_UP = 'NRC_CH_UP-ONOFF'
    CHANNEL_DOWN = 'NRC_CH_DOWN-ONOFF'
    CHAT_MODE = 'NRC_CHAT_MODE-ONOFF'
    DIGA_CONTROL = 'NRC_DIGA_CTL-ONOFF'
    DISPLAY = 'NRC_DISP_MODE-ONOFF'
    DMS_CHANNEL_DOWN = 'NRC_DMS_CH_DOWN-ONOFF'
    DMS_CHANNEL_UP = 'NRC_DMS_CH_UP-ONOFF'
    DOWN = 'NRC_DOWN-ONOFF'
    ENTER = 'NRC_ENTER-ONOFF'
    EPG = 'NRC_EPG-ONOFF'
    EZ_SYNC = 'NRC_EZ_SYNC-ONOFF'
    FAVORITE = 'NRC_FAVORITE-ONOFF'
    FAST_FORWARD = 'NRC_FF-ONOFF'
    GAME = 'NRC_GAME-ONOFF'
    GREEN = 'NRC_GREEN-ONOFF'
    GUIDE = 'NRC_GUIDE-ONOFF'
    HOLD = 'NRC_HOLD-ONOFF'
    HOME = 'NRC_HOME-ONOFF'
    INDEX = 'NRC_INDEX-ONOFF'
    INFO = 'NRC_INFO-ONOFF'
    INPUT = 'NRC_CHG_INPUT-ONOFF'
    INTERNET = 'NRC_INTERNET-ONOFF'
    LAST_VIEW = 'NRC_R_TUNE-ONOFF'
    LEFT = 'NRC_LEFT-ONOFF'
    MENU = 'NRC_MENU-ONOFF'
    MPX = 'NRC_MPX-ONOFF'
    MUTE = 'NRC_MUTE-ONOFF'
    NETWORK = 'NRC_CHG_NETWORK-ONOFF'
    NUM_0 = 'NRC_D0-ONOFF'
    NUM_1 = 'NRC_D1-ONOFF'
    NUM_2 = 'NRC_D2-ONOFF'
    NUM_3 = 'NRC_D3-ONOFF'
    NUM_4 = 'NRC_D4-ONOFF'
    NUM_5 = 'NRC_D5-ONOFF'
    NUM_6 = 'NRC_D6-ONOFF'
    NUM_7 = 'NRC_D7-ONOFF'
    NUM_8 = 'NRC_D8-ONOFF'
    NUM_9 = 'NRC_D9-ONOFF'
    NET_BS = 'NRC_NET_BS-ONOFF'
    NET_CS = 'NRC_NET_CS-ONOFF'
    NET_TD = 'NRC_NET_TD-ONOFF'
    OFF_TIMER = 'NRC_OFFTIMER-ONOFF'
    OPTION = 'NRC_SUBMENU-ONOFF'
    PAUSE = 'NRC_PAUSE-ONOFF'
    PICTAI = 'NRC_PICTAI-ONOFF'
    PLAY = 'NRC_PLAY-ONOFF'
    P_NOISEREDUCTION = 'NRC_P_NR-ONOFF'
    POWER = 'NRC_POWER-ONOFF'
    PROGRAM = 'NRC_PROG-ONOFF'
    RECORD = 'NRC_REC-ONOFF'
    RED = 'NRC_RED-ONOFF'
    RETURN = 'NRC_RETURN-ONOFF'
    REWIND = 'NRC_REW-ONOFF'
    RIGHT = 'NRC_RIGHT-ONOFF'
    R_SCREEN = 'NRC_R_SCREEN-ONOFF'
    SAP = 'NRC_SAP-ONOFF'
    SKIP_NEXT = 'NRC_SKIP_NEXT-ONOFF'
    SKIP_PREV = 'NRC_SKIP_PREV-ONOFF'
    SPLIT = 'NRC_SPLIT-ONOFF'
    STOP = 'NRC_STOP-ONOFF'
    SUBTITLES = 'NRC_STTL-ONOFF'
    SURROUND = 'NRC_SURROUND-ONOFF'
    SWAP = 'NRC_SWAP-ONOFF'
    TEXT = 'NRC_TEXT-ONOFF'
    TV = 'NRC_TV-ONOFF'
    TV_DISPLAY_MUTE_ON = 'NRC_TV_MUTE_ON-ONOFF'
    TV_DISPLAY_MUTE_OFF = 'NRC_TV_MUTE_OFF-ONOFF'
    THIRTY_SECOND_SKIP = 'NRC_30S_SKIP-ONOFF'
    TOGGLE_3D = 'NRC_3D-ONOFF'
    TOGGLE_SD_CARD = 'NRC_SD_CARD-ONOFF'
    UP = 'NRC_UP-ONOFF'
    VOLUME_DOWN = 'NRC_VOLDOWN-ONOFF'
    VOLUME_UP = 'NRC_VOLUP-ONOFF'
    VIERA_LINK = 'NRC_VIERA_LINK-ONOFF'
    VIERA_TOOLS = 'NRC_VTOOLS-ONOFF'
    YELLOW = 'NRC_YELLOW-ONOFF'
So i think I can manage it. But now I go to sleep now.
It will be possible to send using SendtoHTTP but will be nicer if anyone could develop a plugin.