No dallas temp sensor in domoticz devices !



  • Hi all,

    I have built several sensors (relay, button) and they work perfectely. I have recently built a new one with a Dallas 18b20 by following the instructions in this website. The problem is this temperature device is seen in Domoticz hardware :
    upload-e71d5191-f181-4a22-844f-d0e70f43f924

    But not in devices list :
    upload-87b6d063-7498-435d-b1f8-7640ba8c703d

    Just in case you want to help me ;-), here is the Domoticz log:

    2016-01-10 23:39:31.002 New sensors allowed for 5 minutes...
    2016-01-10 23:39:44.631 MySensors: Node: 3, Sketch Name: Generic Device
    2016-01-10 23:39:44.632 MySensors: Node: 3, Sketch Version: 1.43
    2016-01-10 23:39:54.173 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:40:00.170 Error: EventSystem: Lua script error (Blockly), Name: Heater room kids_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: unexpected symbol near ')'
    2016-01-10 23:40:24.261 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:40:54.350 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:41:00.205 Error: EventSystem: Lua script error (Blockly), Name: Heater room kids_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: unexpected symbol near ')'
    2016-01-10 23:41:24.439 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:41:54.528 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:42:00.238 Error: EventSystem: Lua script error (Blockly), Name: Heater room kids_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: unexpected symbol near ')'
    2016-01-10 23:42:24.617 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:42:54.705 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:43:00.269 Error: EventSystem: Lua script error (Blockly), Name: Heater room kids_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: unexpected symbol near ')'
    2016-01-10 23:43:24.795 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:43:54.884 Hardware Monitor: Fetching data (System sensors)
    2016-01-10 23:44:00.301 Error: EventSystem: Lua script error (Blockly), Name: Heater room kids_1 => [string "result = 0; weekday = os.date('*t')['wday']; ..."]

    Do you know why my dallas temperature sensor is not seen as a physiscal "device" in Domoticz ?
    Thanks


  • Hardware Contributor

    Hi!
    Nodes (except switches) are not added in devices untill the first value is sent.
    I see the presentation (node 3) ? but no value sent from the temp-node.



  • Ok, you were right. I was missing something. In my code, I forgot to read relevant dallas device. I was reading getTempCByIndex(id+i) instead of reading getTempCByIndex(i).

    Thanks for your usefull help.


  • Hardware Contributor

    Great it worked out!


Log in to reply
 

Suggested Topics

  • 5
  • 3
  • 5
  • 4
  • 1
  • 2

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts