scottyphillips / pychonet

A simple to use library for interfacing with the ECHONETlite protocol
GNU General Public License v3.0
20 stars 17 forks source link

Prettify and output in hex to match ECHONET docs #16

Closed ammgws closed 3 years ago

ammgws commented 3 years ago

Better output:

192.168.1.6 - ECHONET Node Discovery Successful! 192.168.1.6 - ECHONET Instance 0x5-0xff-0x1 map attributes discovered! 192.168.1.6 - ECHONET Instance 0x5-0xff-0x1 identification number discovered! [{'eojcc': '0xff', 'eojci': '0x1', 'eojgc': '0x5', 'getmap': ['0x80', '0x81', '0x82', '0x83', '0x88', '0x8a', '0x8b', '0x93', '0x97', '0x98', '0x9d', '0x9e', '0x9f'], 'host': '192.168.1.6', 'manufacturer': 'Mitsubishi Electric', 'setmap': ['0x81', '0x93'], 'uid': '000007010758527af7fe5511f7057f017'}]