Author Topic: Hue Motion Sensor  (Read 348 times)

Offline ChrisTheC

  • Full Member
  • ***
  • Posts: 146
  • Karma: +4/-1
  • Baltimore, MD & Washington, DC
Hue Motion Sensor
« on: June 14, 2018, 06:50:08 am »
Amg0:

Actually, I have 2 questions.

RPi3, openLuup/AltUI

I've been using your plugin with great satisfaction controlling 4 bulbs. The Hue kit that I purchased included the motion sensor which I finally setup last night. I've read it was a pretty capable multi-sensor.

My 1st question is about the temperature sensor (picture attached). Is there a configuration option to show the temperature in Fahrenheit? I looked through the AltUI device variables, and also looked at the settings in the Hue app (android), but couldn't find an option.

My 2nd question is about the dimmable light icons called by the ALTHue plugin. In my /home/pi/vera/cmh-ludl/icons, I have .png icons of Dimmable_Light_0, 25, 50, 100 but none of the in-between levels. Setting a load level target to 30% for example changes the icon to the default zwave icon (picture also attached). The openLuup log shows:

Code: [Select]
2018-06-14 05:55:21.975   openLuup.http:: GET /data_request?id=action&output_format=json&DeviceNum=45&serviceId=urn:upnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&newLoadlevelTarget=30 HTTP/1.1 tcp{client}: 0x2a9fdd8
2018-06-14 05:55:21.976   luup.call_action:: 45.urn:upnp-org:serviceId:Dimming1.SetLoadLevelTarget
2018-06-14 05:55:21.976   luup.call_action:: action will be handled by parent: 44
2018-06-14 05:55:21.976   luup.variable_set:: 45.urn:upnp-org:serviceId:Dimming1.LoadLevelTarget was: 50 now: 30 #hooks:0
2018-06-14 05:55:21.977   luup.variable_set:: 45.urn:upnp-org:serviceId:Dimming1.LoadLevelStatus was: 50 now: 30 #hooks:0
2018-06-14 05:55:21.977   luup.variable_set:: 45.urn:upnp-org:serviceId:SwitchPower1.Target was: 1 now: 1 #hooks:0
2018-06-14 05:55:21.984   luup.variable_set:: 45.urn:upnp-org:serviceId:SwitchPower1.Status was: 1 now: 1 #hooks:0
2018-06-14 05:55:21.998   openLuup.http:: request completed (44 bytes, 1 chunks, 22 ms) tcp{client}: 0x2a9fdd8
2018-06-14 05:55:21.998   luup.watch_callback:: 45.urn:upnp-org:serviceId:SwitchPower1.Status function: 0x23b7578
2018-06-14 05:55:22.506   openLuup.http:: request completed (2898 bytes, 1 chunks, 8074 ms) tcp{client}: 0x2c93880
2018-06-14 05:55:23.471   openLuup.http:: GET /cmh/skins/default/img/devices/device_states/dimmable_light_30.png HTTP/1.1 tcp{client}: 0x2c93880
2018-06-14 05:55:23.473   openLuup.servlet:: file not found:icons/dimmable_light_30.png
2018-06-14 05:55:23.473   openLuup.http:: request completed (142 bytes, 0 chunks, 1 ms) tcp{client}: 0x2c93880

Where can I find or download the extra dimmable_light_x0.png icons so that I can add them to my openLuup icons folder?

Thanks for your continued great work!

Chris


openLuup with ALTUI, ALTHUE, 8x iPhoneLocators, Harmony Hub, Honeywell Wifi T-stat, Foscam Fi8608w & 2x R2, bridged to . . .
Vera 3/UI5 with Schlage BE469NX, 3x EZMotion+, 3x Ecolink PIR, 3x Schlage door sensors, 2x Aeotec micro switches, 2x Aeotec appliance switches, Leviton RZM10 & DZMX1, Wemo

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3164
  • Karma: +209/-8
Re: Hue Motion Sensor
« Reply #1 on: June 20, 2018, 06:37:43 pm »
Amg0:

Actually, I have 2 questions.

RPi3, openLuup/AltUI

I've been using your plugin with great satisfaction controlling 4 bulbs. The Hue kit that I purchased included the motion sensor which I finally setup last night. I've read it was a pretty capable multi-sensor.

My 1st question is about the temperature sensor (picture attached). Is there a configuration option to show the temperature in Fahrenheit? I looked through the AltUI device variables, and also looked at the settings in the Hue app (android), but couldn't find an option.

My 2nd question is about the dimmable light icons called by the ALTHue plugin. In my /home/pi/vera/cmh-ludl/icons, I have .png icons of Dimmable_Light_0, 25, 50, 100 but none of the in-between levels. Setting a load level target to 30% for example changes the icon to the default zwave icon (picture also attached). The openLuup log shows:

Code: [Select]
2018-06-14 05:55:21.975   openLuup.http:: GET /data_request?id=action&output_format=json&DeviceNum=45&serviceId=urn:upnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&newLoadlevelTarget=30 HTTP/1.1 tcp{client}: 0x2a9fdd8
2018-06-14 05:55:21.976   luup.call_action:: 45.urn:upnp-org:serviceId:Dimming1.SetLoadLevelTarget
2018-06-14 05:55:21.976   luup.call_action:: action will be handled by parent: 44
2018-06-14 05:55:21.976   luup.variable_set:: 45.urn:upnp-org:serviceId:Dimming1.LoadLevelTarget was: 50 now: 30 #hooks:0
2018-06-14 05:55:21.977   luup.variable_set:: 45.urn:upnp-org:serviceId:Dimming1.LoadLevelStatus was: 50 now: 30 #hooks:0
2018-06-14 05:55:21.977   luup.variable_set:: 45.urn:upnp-org:serviceId:SwitchPower1.Target was: 1 now: 1 #hooks:0
2018-06-14 05:55:21.984   luup.variable_set:: 45.urn:upnp-org:serviceId:SwitchPower1.Status was: 1 now: 1 #hooks:0
2018-06-14 05:55:21.998   openLuup.http:: request completed (44 bytes, 1 chunks, 22 ms) tcp{client}: 0x2a9fdd8
2018-06-14 05:55:21.998   luup.watch_callback:: 45.urn:upnp-org:serviceId:SwitchPower1.Status function: 0x23b7578
2018-06-14 05:55:22.506   openLuup.http:: request completed (2898 bytes, 1 chunks, 8074 ms) tcp{client}: 0x2c93880
2018-06-14 05:55:23.471   openLuup.http:: GET /cmh/skins/default/img/devices/device_states/dimmable_light_30.png HTTP/1.1 tcp{client}: 0x2c93880
2018-06-14 05:55:23.473   openLuup.servlet:: file not found:icons/dimmable_light_30.png
2018-06-14 05:55:23.473   openLuup.http:: request completed (142 bytes, 0 chunks, 1 ms) tcp{client}: 0x2c93880

Where can I find or download the extra dimmable_light_x0.png icons so that I can add them to my openLuup icons folder?

Thanks for your continued great work!

Chris

Fahrenheit . I need to look at this and use the vera setting...
Icon. No it is a different techno it uses SVG files and it is vectorial so you do not need intermediate files, it colorized the content. To be honest the code was provided to me by a forum member ( do not have the name handy right now ) it is quite smart. Check out svg file and make sure it s available
« Last Edit: June 22, 2018, 06:36:45 pm by amg0 »

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3164
  • Karma: +209/-8
Re: Hue Motion Sensor
« Reply #2 on: June 22, 2018, 07:07:18 pm »
in the github version, I have added a variable TempFormat which can take value of C or F according to your needs (C for Celsius )

note that there is no error checking or user interface to edit the variable so please edit it directly and type just C or F , capital letter, one character