Activating heating via php

  • April 2, 2013 at 20:50 #5796
    James
    Participant

    I’ve been having a play with the php script found at http://blog.networkedsolutions.co.uk/?p=149 – its working great, except I have an inline relay set up to activate my boiler.

    The code for the PHP basically calls “Rx Dy” where x is the number of the room and y is the number of the device within that room. so my question is – what is the equivalent of R for the heating controls?

    My backup plan is to reassign the relay to a standard room, but i’d like to do this ‘right’ if I can 🙂

    April 2, 2013 at 23:08 #5798
    Chris
    Keymaster

    You still need to assign it to a room although the room is arbitrary if you are not going to use one of the official apps. You can simply assign a room number 1-15 I think and a device number, also 1-15 I think (the official apps only support 1-8). Put the relay in to learning mode and send the relevant On signal to your chosen room and device. The relay will learn that and respond to it in future. If you already have it set up to operate using one of the official apps, it already has a room and device number so there is no point giving it another one. If I recall correctly, rooms are numbered 1 top left, 2 top right, 3 2nd row left, 4 2nd row right and so on; likewise with device numbers.

    Chris Mills
    Founder and Editor - LightwaveRF Community
    http://cpmills.com/ https://staging.lightwaverfcommunity.org.uk

    April 3, 2013 at 10:14 #5802
    James
    Participant

    Ah, I didn’t realise the number or rooms wasn’t limited to what was in the app. Thats good to know.

    As to my original question, I should clarify – I understand the correlation between the rooms/devices and the android app. I already have everything mapped on the standard android app and match that in my php code, but using the heating section rather than the “rooms”. You know the red button at the bottom of the manager/android app? Its just what that particular button correlates to “room” wise.

    I’m moving more and more towards taking the app out of the equation and writing a dedicated web based tool, so its not really important, I’m more curious than anything else.

     

    April 3, 2013 at 14:16 #5803
    Chris
    Keymaster

    Ah. There is no such button in the iPhone app so no idea what it relates to. If you have Wireshark on a computer, you should be able to find out – simply listen for traffic coming from your phone and you will see the packets going to the Wi-Fi link when you press the button.

    Chris Mills
    Founder and Editor - LightwaveRF Community
    http://cpmills.com/ https://staging.lightwaverfcommunity.org.uk

You must be logged in to reply to this topic.