Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
D

Dragon

@Dragon
About
Posts
16
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help with Lua
    D Dragon

    @kimot said in Help with Lua:

    '

    Thanks but it didnt help

    Troubleshooting

  • Help with Lua
    D Dragon

    If i put http://192.168.1.115/control?cmd=Nextion,page2.t2.txt="12"
    in my webexplorer it works

    Troubleshooting

  • Help with Lua
    D Dragon

    Hi!
    I have a 433mhz temp sensor in domoticz there i want to send value to a Nextion display with espeasy. Here is my Lua script

    local devicename = 'Ute'
    commandArray = {}

    if devicechanged[devicename] then
    commandArray['OpenURL']= 'http://192.168.1.115/control?cmd=Nextion,page2,t2.txt='..otherdevices_svalues[devicename]..""
    end
    return commandArray

    In domoticz log is everything fine but it dont shows up in Nextion.

    Any ideas?

    Troubleshooting

  • 5v cable
    D Dragon

    Thanks!👍

    General Discussion

  • 5v cable
    D Dragon

    Have a panel with a Nextion 3.2" screen and a Wemos D1. I need about 5m cable to feed this with 5v. Would it work with an network cable or phone cable or would this be too thin?

    General Discussion

  • Repeater
    D Dragon

    @mfalkvidd Thanks

    General Discussion

  • Repeater
    D Dragon

    @mfalkvidd thanks i missed that. So i only need to write this in the code #define MY_REPEATER_FEATURE

    General Discussion

  • Repeater
    D Dragon

    How do i do a repeater node? I cant found it in the code anymore?

    General Discussion

  • Copy sensor
    D Dragon

    @mfalkvidd Okey thanks

    General Discussion

  • Copy sensor
    D Dragon

    Is it any way to copy the sketch from a sensor? I have lost it on my computer

    General Discussion

  • Lua script
    D Dragon

    @Affe I can not lua :smiley: i read on lua pages on internet and experiment

    Troubleshooting

  • Lua script
    D Dragon

    @flopp When i put in print(counter) it shows with decimals in the logg but the counter doesnt

    Troubleshooting

  • Lua script
    D Dragon

    @flopp In DZ the counter is incremental but i tried general to.

    Troubleshooting

  • Lua script
    D Dragon

    I can try explain more how i made it. Sorry for my bad English, on my pellet boiler i have a switch that sends on to domoticz every turn with is 15 gram pellet. In domoticz is the switch called Pellets. Then i made a viruell counter in domoticz with name Counter. I want the lua script to + 0.015 to every turn the boiler do to Count how mutch pellet it use. It works now but shows without decimals like 2kg, 3kg and so. I can have so but it would be fun to se more exact weight.

    Troubleshooting

  • Lua script
    D Dragon

    Thanks but that didnt help.

    Troubleshooting

  • Lua script
    D Dragon

    I have made a simple lua script to count pellet and show this on a virtuell counter in Domoticz. The problem is that the counter dont shows decimals. Can anyone tell me if it is some more i have to write in the script. Here it is
    counter = otherdevices_svalues['Counter']
    counter = tonumber(counter)

    commandArray = {}
    if
    devicechanged['Pellets'] == 'On'
    then
    counter = counter + 0.015
    commandArray['UpdateDevice'] = 82 .. '|0|' .. tostring(counter)
    end

    return commandArray

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular