Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi i want to use HA Device tracker but model UBC1318 is not supported yet #13

Open
pimvanelsen opened this issue Jul 12, 2019 · 5 comments

Comments

@pimvanelsen
Copy link

Hi All,

I have a UBC1318 modem and i like to use it with HA (device tracker) but the model is not yet supported. Could you please make it available.

Regards,
Pim

@StevenLooman
Copy link
Contributor

Hi Pim,

Adding support for a device is fairly hard when the developer does not have access to the device itself. We have tried to set up a guide at https://github.com/mzdrale/pyubee/blob/master/ADDING_NEW_MODELS.md Please answer the questions in this guide.

This is however, no means that this will be a success story. As I said, without being able to test it ourselves, it is hard to add support.

@pimvanelsen
Copy link
Author

pimvanelsen commented Jul 14, 2019

Auto-detect the model:

My router does not respond on this page request and i get a timeout. To access the Modem (it is only a cable modem router cause it has no Wifi). The router is standard on 192.168.1.1.

Log in:

<form action="htdocs/login_check.php" method="POST" name="loginUBC1318ZG" onsubmit="return isApplyAction();" _lpchecked="1">
    <div class="content">
    
        <table cellpadding="0" cellspacing="0" border="0" align="center">
<!--
            <tr>
                <td align="right"><span class="tl" tl="Username">Gebruikersnaam<span></td>
                <td align="left">
                    <input type="text" name="loginUsername" value="" id="loginUsername" class="default" onkeydown="checkEnterKey(this,event,1);" onfocus="$(this).addClass('enabled');" onblur="$(this).removeClass('enabled');">
                    <img src="images/info-icon.svg" width="18" class="infobubble" data-tooltip="Je kunt de standaard gebruikersnaam onderop de modem vinden." data-tooltip-tl="You can find the default settings username on the side of the modem.">
                </td>
                <td><input type="hidden" name="isTogglePasswordAction" id="isTogglePasswordAction" value='0' ></td>
            </tr>
-->
            <tbody><tr>
                <td align="right"><span class="tl" tl="Password">Wachtwoord</span></td>
                <td align="left">
                    <input type="password" name="loginPassword" value="" id="loginPassword" class="default" onkeydown="checkEnterKey(this,event,2);" onfocus="$(this).addClass('enabled');" onblur="$(this).removeClass('enabled');" autocomplete="off" style="background-image: url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAAXNSR0IArs4c6QAAAPhJREFUOBHlU70KgzAQPlMhEvoQTg6OPoOjT+JWOnRqkUKHgqWP4OQbOPokTk6OTkVULNSLVc62oJmbIdzd95NcuGjX2/3YVI/Ts+t0WLE2ut5xsQ0O+90F6UxFjAI8qNcEGONia08e6MNONYwCS7EQAizLmtGUDEzTBNd1fxsYhjEBnHPQNG3KKTYV34F8ec/zwHEciOMYyrIE3/ehKAqIoggo9inGXKmFXwbyBkmSQJqmUNe15IRhCG3byphitm1/eUzDM4qR0TTNjEixGdAnSi3keS5vSk2UDKqqgizLqB4YzvassiKhGtZ/jDMtLOnHz7TE+yf8BaDZXA509yeBAAAAAElFTkSuQmCC&quot;); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%; cursor: auto;">
                    <span class="pwd-showhide"><button name="loginPasswordButton" id="loginPasswordButton" onclick="setTogglePasswordSetting(); $(this).toggleShowPassword('#loginPassword');"><span class="tl" tl="Show">Toon</span></button></span>
                    <img src="images/info-icon.svg" width="18" class="infobubble" data-tooltip="Je kunt het standaard modem wachtwoord onderop de modem vinden." data-tooltip-tl="You can find the default settings password on the side of the modem.">
                </td>
				<td><input type="hidden" name="isTogglePasswordAction" id="isTogglePasswordAction" value="0"></td>
            </tr>
       </tbody></table>
       <!-- START: Only show when username has been entered incorrectly. Currently hidden using display:none; -->
       <!-- END: Only show when username has been entered incorrectly. -->
       <!-- START: Only show when password has been entered incorrectly. Currently hidden using display:none; -->
       <table id="pwd_error_style" cellpadding="0" cellspacing="5" border="0" align="center" class="error-msg-small" style="display: none;"> 
            <tbody><tr>
                <td valign="middle" style="padding:0px 8px 0px 0px;"><img src="images/error-icon.svg"></td><td valign="middle" style="padding:0px;"><span class="tl" tl="The used password is incorrect. You can find the default modem password on the side of the modem. Did you change the password in the past? If you can't remember, you can change the modem settings back to factory default settings by pressing the reset button on the back of the modem for 10 seconds.">Het ingevoerde wachtwoord is niet correct. <br>Je kunt het standaard modem wachtwoord aan de zijkant van de modem vinden. Heb je het wachtwoord in het verleden gewijzigd? Indien je deze niet meer weet, kan je de modem terugzetten naar de standaard instellingen door met een balpen het reset knopje achter op de modem 10 seconden lang in te drukken.</span></td>
            </tr>
        </tbody></table>
       <!-- END: Only show when password has been entered incorrectly. -->
    </div>
    <div><input type="submit" name="UBC1318ZGLoginApply" id="UBC1318ZGLoginApply" class="button_main" value="Doorgaan" tl="Continue" onmouseover="$(this).addClass('button_main_hover');" onmouseout="$(this).removeClass('button_main_hover');" onclick="clearTogglePasswordSetting();"></div> 
    </form>

Log out:
http://192.168.1.1/htdocs/unauth.php

If not logged in:

<form action="htdocs/login_check.php" method="POST" name="loginUBC1318ZG" onsubmit="return isApplyAction();">

If logged on the this part is available:

<div class="logout"><a href="unauth.php"><img src="images/Logout-icon.svg"><span class="tl" tl="Log out">Afmelden</span></a></div>

Get the connected devices via LAN (Please note that i formatted it. I also pasted the unformatted part):

<table class="data-tables" cellpadding="0" cellspacing="0" width="100%">
                        <tbody id="ID_CONNECTED_DEVICES_TABLE">
							<tr>
								<th width="20%" style="border-left: 0px; white-space: nowrap;"><span class="tl" tl="Devicename">Apparaatnaam</span></th>
								<th width="20%" style="white-space: nowrap;"><span class="tl" tl="MAC-address">MAC-adres</span></th>
								<th width="25%" style="white-space: nowrap;"><span class="tl" tl="IP-address(es)">IP-adres(sen)</span></th>
								<th width="5%"><span class="tl" tl="Speed">Snelheid</span><br><span>(Mb/s)</span></th>
								<th width="30%" style="border-right: 0px; white-space: nowrap;"><span class="tl" tl="Connected via">Verbonden via</span></th>
								</tr>
							<tr name="clientinfo"><td>PC</td><td>90:fb:af:88:83:d5</td><td>192.168.1.244</td><td>1000</td><td>LAN 2 </td></tr>
							<tr name="clientinfo"><td>iPhone-van-Romy</td><td>38:71:ca:de:87:7f</td><td>192.168.1.12</td><td>1000</td><td>LAN 2 </td></tr>
							<tr name="clientinfo"><td>Galaxy-S6</td><td>c3:50:8b:ae:a5:9e</td><td>192.168.1.20</td><td>1000</td><td>LAN 2 </td></tr>
							<tr name="clientinfo"><td>iPhonevangarita</td><td>54:99:63:c3:af:56</td><td>192.168.1.95</td><td>1000</td><td>LAN 2 </td></tr>
							<tr name="clientinfo"><td>Laptop_ASUS_UX331UN</td><td>94:b8:6d:82:ca:88</td><td>192.168.1.79</td><td>1000</td><td>LAN 2 </td></tr></tbody>
                    </table>

Unformatted:

<tbody id="ID_CONNECTED_DEVICES_TABLE"><tr><th width="20%" style="border-left: 0px; white-space: nowrap;"><span class="tl" tl="Apparaatnaam">Devicename</span></th><th width="20%" style="white-space: nowrap;"><span class="tl" tl="MAC-adres">MAC-address</span></th><th width="25%" style="white-space: nowrap;"><span class="tl" tl="IP-adres(sen)">IP-address(es)</span></th><th width="5%"><span class="tl" tl="Snelheid">Speed</span><br><span>(Mb/s)</span></th><th width="30%" style="border-right: 0px; white-space: nowrap;"><span class="tl" tl="Verbonden via">Connected via</span></th></tr><tr name="clientinfo"><td>PC</td><td>90:fb:af:88:83:d5</td><td>192.168.1.244</td><td>1000</td><td>LAN 2 </td></tr><tr name="clientinfo"><td>iPhone-van-Romy</td><td>38:71:ca:de:87:7f</td><td>192.168.1.12</td><td>1000</td><td>LAN 2 </td></tr><tr name="clientinfo"><td>Galaxy-S6</td><td>c3:50:8b:ae:a5:9e</td><td>192.168.1.20</td><td>1000</td><td>LAN 2 </td></tr><tr name="clientinfo"><td>iPhonevangarita</td><td>54:99:63:c3:af:56</td><td>192.168.1.95</td><td>1000</td><td>LAN 2 </td></tr><tr name="clientinfo"><td>Laptop_ASUS_UX331UN</td><td>94:b8:6d:82:ca:88</td><td>192.168.1.79</td><td>1000</td><td>LAN 2 </td></tr></tbody>

@pimvanelsen
Copy link
Author

Hmm Steven it is probably better if i send you the pages....

@StevenLooman StevenLooman reopened this Jul 15, 2019
@StevenLooman
Copy link
Contributor

I'll try to review the information soon. Due to holidays etc it can take a bit longer.

@StevenLooman
Copy link
Contributor

You can add code by putting it between ``` your code here ```. This will become: your code here.
I have edited your post.

Thank you for providing the information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants