Need help for understand dzVents

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Need help for understand dzVents

Post by albebert »

Hello there,

Since the Yamah plugin is not working anymore ( :'() i'm trying to do that i wan't with virtual switch and dzvents.

but i'm a sysadmin not a developer so difficult for me.

So can anyone help me to do 2 simple things please ?

that i wan't :

- a timer trigger that check the yamaha amp status and change the virtual switch (dimmer) according to amp status.
- change volume of amp when i change it on the dimmer virtual switch.
- change the dimmer volume according to amp volume
- add a selector to switch betweens input (and change it when input is changed directly on amp)



The amp work with http GET (and some POST) and return JSON.

for example in order to get status :

curl -s http://ampli-salon/YamahaExtendedContro ... /getStatus

return :
{"response_code":0,"power":"standby","sleep":0,"volume":76,"mute":false,"max_volume":161,"input":"hdmi5","distribution_enable":true,"sound_program":"surr_decoder","surr_decoder_type":"dts_neo6_cinema","direct":false,"enhancer":true,"tone_control":{"mode":"manual","bass":3,"treble":0},"link_control":"standard","link_audio_delay":"audio_sync","link_audio_quality":"uncompressed","disable_flags":0,"actual_volume":{"mode":"db","value":-42.5,"unit":"dB"},"contents_display":false}

so the interesting value are :
.power (standby or on)
.volume
.input

so i started by creating a event in domoticz UI using http request

Code: Select all

return {
	on = {
		timer = {
			'every 1 minutes' -- just an example to trigger the request
		},
		httpResponses = {
			'trigger' -- must match with the callback passed to the openURL command
		}
	},
	execute = function(domoticz, item)

		if (item.isTimer) then
			domoticz.openURL({
				url = 'http://ampli-salon/YamahaExtendedControl/v1/main/getStatus',
				method = 'GET',
				callback = 'trigger', -- see httpResponses above.
			})
		end

		if (item.isHTTPResponse) then

			if (item.ok) then
				if (item.isJSON) then

					local status = item.json.power  -- just an example

					-- update some device in Domoticz
					domoticz.devices('Ampli - Zone 1').updateText(someValue)
				end
			else
				domoticz.log('There was a problem handling the request', domoticz.LOG_ERROR)
				domoticz.log(item, domoticz.LOG_ERROR)
			end

		end

	end
}
so if anyone can help me to do this..

Thanks i advance
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understant dzvents

Post by waaren »

albebert wrote: Monday 22 February 2021 9:48 The amp work with http GET (and some POST) and return JSON.
so if anyone can help me to do this..
Hope this initial script will help to get you going.

Code: Select all

local scriptVar = 'Yamaha'

return {
    on = {
        timer =
        {
            'every minute' -- just an example to trigger the request
        },
        httpResponses =
        {
            scriptVar
        }
    },

    logging =
    {
        level = domoticz.LOG_DEBUG,
        marker = scriptVar,
    },

    execute = function(dz, item)

        local testing = true
		local maxVolume = 161

        local volume = dz.devices('Yamaha volume') -- switch (dimmer) 
        local input = dz.devices('Yamaha input') -- selector switch with all possible input strings as levels

        if item.isTimer then
            dz.openURL({
                url = 'http://ampli-salon/YamahaExtendedControl/v1/main/getStatus',
                callback = scriptVar,
            })
            return
        end

        if testing then
            item.json = dz.utils.fromJSON('{"response_code":0,"power":"standby","sleep":0,"volume":76,"mute":false,"max_volume":161,"input":"hdmi5","distribution_enable":true,"sound_program":"surr_decoder","surr_decoder_type":"dts_neo6_cinema","direct":false,"enhancer":true,"tone_control":{"mode":"manual","bass":3,"treble":0},"link_control":"standard","link_audio_delay":"audio_sync","link_audio_quality":"uncompressed","disable_flags":0,"actual_volume":{"mode":"db","value":-42.5,"unit":"dB"},"contents_display":false}')
            dz.utils.dumpTable(item.json) -- just for test / debug
        end

        if item.isHTTPResponse and item.json then
            volume.dimTo(math.floor(item.json.volume / maxVolume)).silent()
            input.switchSelector(item.json.input).silent()

        else
            dz.log('There was a problem handling the request ', domoticz.LOG_ERROR)
            dz.log(item, dz.LOG_DEBUG)
        end

    end
}

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understant dzvents

Post by albebert »

Ok it's work !

just a litle problem with volume max volume on amp is 161 so when volume is at max on amp, dimmer is at 61%.

i've added htttp query on selector

so for now, selector is working great, power too.

so need to ajust dimmer volume to amp volume, and control amp volume from dimmer volume.
Last edited by albebert on Monday 22 February 2021 11:15, edited 1 time in total.
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Need help for understant dzvents

Post by waltervl »

albebert wrote: Monday 22 February 2021 9:48 Hello there,

Since the Yamah plugin is not working anymore ( :'() i'm trying to do that i wan't with virtual switch and dzvents.
What Yamaha plugin is not working anymore? This one: https://github.com/thomas-villagers/domoticz-yamaha ?
I do not find any reference on the forum that a yamaha plugin is not working anymore...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understant dzvents

Post by albebert »

waltervl wrote: Monday 22 February 2021 11:07
albebert wrote: Monday 22 February 2021 9:48 Hello there,

Since the Yamah plugin is not working anymore ( :'() i'm trying to do that i wan't with virtual switch and dzvents.
What Yamaha plugin is not working anymore? This one: https://github.com/thomas-villagers/domoticz-yamaha ?
I do not find any reference on the forum that a yamaha plugin is not working anymore...

yes this plugin,
i'm not alone that have a problem.

and now, my old domoticz is not working anymore with this plugin :

2021-02-22 11:16:34.984 Error: (Ampli Salon): Async Read Exception (192.168.200.67:50000): 104, Connection reset by peer
2021-02-22 11:16:35.009 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.010 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.011 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.012 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.014 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.015 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.016 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.017 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.018 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.019 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.
2021-02-22 11:16:35.020 Error: Python Plugin System: (Ampli Salon) No transport, write directive to 'Yamaha connection' ignored.


i d'ont know why, issu open on git but no response from dev :'(

so i manage to bypass this

edit : for info there is a thread on forum : https://domoticz.com/forum/viewtopic.ph ... ha#p263641
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understant dzvents

Post by waaren »

albebert wrote: Monday 22 February 2021 11:05 just a litle problem with volume max volume on amp is 161 so when volume is at max on amp, dimmer is at 61%.
Adjusted the above script to convert ampVolume ( 0 - 161 ) to dimLevel ( 0 - 100 )
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understant dzvents

Post by albebert »

waaren wrote: Monday 22 February 2021 12:36
albebert wrote: Monday 22 February 2021 11:05 just a litle problem with volume max volume on amp is 161 so when volume is at max on amp, dimmer is at 61%.
Adjusted the above script to convert ampVolume ( 0 - 161 ) to dimLevel ( 0 - 100 )
thanks ! (i've do this to achieve same thing : volume.dimTo(item.json.volume/161*100).silent() )

so now a little problem, when i change dimmer level, amp goes ON, but the script seems to change level each time, so if amp is off, when the script run, it goes ON.

there is a way to change this ? (if dimmer volume change don't power on) or i think that we can add an condition like this :

Code: Select all

if item.isHTTPResponse and item.json and item.json.power = on then
and the last thing, need to change amp volume when i change dimmer volume.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understant dzvents

Post by waaren »

albebert wrote: Monday 22 February 2021 14:19 so now a little problem, when i change dimmer level, amp goes ON, but the script seems to change level each time, so if amp is off, when the script run, it goes ON.
there is a way to change this ? (if dimmer volume change don't power on)
No but maybe you can split the functionality. So one dimmer to display the volume and one switch to switch power of the amp?
and the last thing, need to change amp volume when i change dimmer volume.
What is the url to set the amp volume?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understant dzvents

Post by albebert »

there is the url http://ampli-salon/YamahaExtendedContro ... ?volume=50

i'm testing a thing but no luck

Code: Select all

  if item.isHTTPResponse and item.json then
            dz.utils.dumpTable(item.json)
            if item.json.power == on then
            volume.dimTo(math.floor(item.json.volume / maxVolume)).silent()
            input.switchSelector(item.json.input).silent()
            volume.quietOn()
            end

        else
            volume.quietOff()
        end
the "if item.json.power == on then" does not math (i've the dump table in log so i enter in first if but not in the second.

edit : ok with right syntax it's work "item.json.power == "on' "

if amp is off, script d'ont update dimmer volume (not needed) ! :)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understant dzvents

Post by waaren »

albebert wrote: Monday 22 February 2021 14:43 there is the url http://ampli-salon/YamahaExtendedContro ... ?volume=50
For setting the volume based on dimmer
Something like ?

Code: Select all

local scriptVar = 'Yamaha'

return {
    on = {
        timer =
        {
            'every minute' -- just an example to trigger the request
        },
        devices =
        {
            ''Yamaha volume',
        },
        httpResponses =
        {
            scriptVar,
        },
    },

    logging =
    {
        level = domoticz.LOG_DEBUG,
        marker = scriptVar,
    },

    execute = function(dz, item)

        local maxVolume = 161

        local volume = dz.devices('Yamaha volume') -- switch (dimmer)
        local input = dz.devices('Yamaha input') -- selector switch with all possible input strings as levels

        if item.isTimer then
            dz.openURL({
                url = 'http://ampli-salon/YamahaExtendedControl/v1/main/getStatus',
                callback = scriptVar,
            })
        elseif item.isDevice then
            dz.openURL('http://ampli-salon/YamahaExtendedControl/v1/main/setVolume?volume=' .. (math.floor( item.level * maxVolume / 100) ))
        elseif item.isHTTPResponse and item.json then
            volume.dimTo(math.floor(item.json.volume / maxVolume)).silent()
            input.switchSelector(item.json.input).silent()
        else
            dz.log('There was a problem handling the request ', domoticz.LOG_ERROR)
            dz.log(item, dz.LOG_DEBUG)
        end

    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understant dzvents

Post by albebert »

hum i think that another script that react to dimmer change is better no ?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understant dzvents

Post by waaren »

albebert wrote: Monday 22 February 2021 15:33 hum i think that another script that react to dimmer change is better no ?
Why ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understant dzvents

Post by albebert »

because it can react on change not after 1 minute.

i think
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understant dzvents

Post by waaren »

albebert wrote: Monday 22 February 2021 15:48 because it can react on change not after 1 minute. i think
That's why I added the devices = in the on Section. The script now also reacts immediately on a device change
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understant dzvents

Post by albebert »

sorry missed that !

so i tested, and amp goes of after 1 minute :/

amp is on, don't touch anything, but dimmer is set to 0 so power off

021-02-22 16:30:00.531 Status: dzVents: Debug: - OpenURL = {["_trigger"]="Yamaha", ["method"]="GET", ["URL"]="http://192.168.200.67/YamahaExtendedCon ... /getStatus"}
2021-02-22 16:30:00.533 Status: dzVents: Debug: =====================================================
2021-02-22 16:30:00.535 Status: EventSystem: Script event triggered: /opt/domoticz/dzVents/runtime/dzVents.lua
2021-02-22 16:30:00.684 Status: dzVents: Debug: Dumping domoticz data to /opt/domoticz/scripts/dzVents/domoticzData.lua
2021-02-22 16:30:00.770 Status: dzVents: Debug: dzVents version: 3.1.4
2021-02-22 16:30:00.772 Status: dzVents: Debug: Event triggers:
2021-02-22 16:30:00.773 Status: dzVents: Debug: - HTTPResponse: Yamaha
2021-02-22 16:30:00.847 Status: dzVents: Info: Handling httpResponse-events for: "Yamaha"
2021-02-22 16:30:00.849 Status: dzVents: Info: Yamaha: ------ Start internal script: dzvent ampli main: HTTPResponse: "Yamaha"
2021-02-22 16:30:00.904 Status: dzVents: Debug: Yamaha: Processing device-adapter for Ampli - Zone 1: Switch device adapter
2021-02-22 16:30:00.908 Status: dzVents: Debug: Yamaha: Processing device-adapter for Ampli Input: Switch device adapter
2021-02-22 16:30:00.909 Status: dzVents: Debug: Yamaha: Constructed timed-command: Set Level 0
2021-02-22 16:30:00.911 Status: dzVents: Debug: Yamaha: Constructed timed-command: Set Level 0 NOTRIGGER
2021-02-22 16:30:00.913 Status: dzVents: Debug: Yamaha: Constructed timed-command: Set Level 70
2021-02-22 16:30:00.915 Status: dzVents: Debug: Yamaha: Constructed timed-command: Set Level 70 NOTRIGGER
2021-02-22 16:30:00.918 Status: dzVents: Info: Yamaha: ------ Finished dzvent ampli main
2021-02-22 16:30:00.920 Status: dzVents: !Info: Yamaha: Debug: Writing module summary to /opt/domoticz/scripts/dzVents/module.log
2021-02-22 16:30:00.923 Status: dzVents: Debug: Commands sent to Domoticz:
2021-02-22 16:30:00.925 Status: dzVents: Debug: - Ampli - Zone 1 = Set Level 0 NOTRIGGER
2021-02-22 16:30:00.926 Status: dzVents: Debug: - Ampli Input = Set Level 70 NOTRIGGER
2021-02-22 16:30:00.928 Status: dzVents: Debug: =====================================================
2021-02-22 16:30:00.933 Status: EventSystem: Script event triggered: /opt/domoticz/dzVents/runtime/dzVents.lua
2021-02-22 16:30:00.977 Dummy: Light/Switch (Ampli - Zone 1)
2021-02-22 16:30:01.012 Dummy: Light/Switch (Ampli Input)

i'm trying to add dz.log('i am here') to determin if i enter into condition but domoticz seems not apreciate that :
"attempt to index a nil value (global 'dz')"
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understand dzVents

Post by waaren »

albebert wrote: Monday 22 February 2021 16:33 i'm trying to add dz.log('i am here') to determin if i enter into condition but domoticz seems not apreciate that :
"attempt to index a nil value (global 'dz')"
Please share the script that causes this error so I can help.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understand dzVents

Post by albebert »

Code: Select all

local scriptVar = 'Yamaha'
return {
    on = {
        timer =
        {
            'every minute' -- just an example to trigger the request
        },
        devices =
        {
            'Ampli - Zone 1',
        },
        httpResponses =
        {
            scriptVar,
        },
    },

    logging =
    {
        level = domoticz.LOG_DEBUG,
        marker = scriptVar,
    },

    execute = function(dz, item)

        local maxVolume = 161

        local volume = dz.devices('Ampli - Zone 1') -- switch (dimmer)
        local input = dz.devices('Ampli Input') -- selector switch with all possible input strings as levels

        if item.isTimer then
            dz.log('i am here ?')
            dz.openURL({
                url = 'http://192.168.200.67/YamahaExtendedControl/v1/main/getStatus',
                callback = scriptVar,
            })
        return
        elseif item.isDevice then
            dz.log('or here ?')
            dz.openURL('http://192.168.200.67/YamahaExtendedControl/v1/main/setVolume?volume=' .. (math.floor( item.level * maxVolume / 100) ))
        end
        
        if item.isHTTPResponse and item.json then
            dz.log('or another here ?')
            volume.dimTo(math.floor(item.json.volume / maxVolume)).silent()
            input.switchSelector(item.json.input).silent()

        end
    end
}
for information my script working without trying to control dimmer :

Code: Select all

local scriptVar = 'Yamaha'

return {
    on = {
        timer =
        {
            'every minute' -- just an example to trigger the request
        },
        httpResponses =
        {
            scriptVar
        }
    },

    logging =
    {
        level = domoticz.LOG_DEBUG,
        marker = scriptVar,
    },

    execute = function(dz, item)

        local testing = false

        local volume = dz.devices('Ampli - Zone 1') -- switch (dimmer) 
        local input = dz.devices('Ampli Input') -- selector switch with all possible input strings as levels

        if item.isTimer then
            dz.openURL({
                url = 'http://192.168.200.67/YamahaExtendedControl/v1/main/getStatus',
                callback = scriptVar,
            })
            return
        end

        if testing then
            item.json = dz.utils.fromJSON('{"response_code":0,"power":"standby","sleep":0,"volume":80,"mute":false,"max_volume":161,"input":"hdmi5","distribution_enable":true,"sound_program":"surr_decoder","surr_decoder_type":"dts_neo6_cinema","direct":false,"enhancer":true,"tone_control":{"mode":"manual","bass":3,"treble":0},"link_control":"standard","link_audio_delay":"audio_sync","link_audio_quality":"uncompressed","disable_flags":0,"actual_volume":{"mode":"db","value":-42.5,"unit":"dB"},"contents_display":false}')
            dz.utils.dumpTable(item.json) -- just for test / debug
        end

        if item.isHTTPResponse and item.json and item.json.power == 'on' then
            dz.utils.dumpTable(item.json) -- just for test / debug
            volume.dimTo(item.json.volume/161*100).silent()
            input.switchSelector(item.json.input).silent()
            --volume.quietOn()

        else
            volume.quietOff()
        end

    end
}
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understand dzVents

Post by waaren »

albebert wrote: Monday 22 February 2021 17:23 for information my script working without trying to control dimmer :
Can you try this one? (first without changing anything please)

Code: Select all

local scriptVar = 'Yamaha'

return {
    on = {
        timer =
        {
            'every minute' -- just an example to trigger the request
        },
        devices =
        {
            'Ampli - Zone 1',
        },
        httpResponses =
        {
            scriptVar,
        },
    },

    logging =
    {
        level = domoticz.LOG_DEBUG,
        marker = scriptVar,
    },

    execute = function(dz, item)

        local maxVolume = 161

        local volume = dz.devices('Ampli - Zone 1') -- switch (dimmer)
        local input = dz.devices('Ampli Input') -- selector switch with all possible input strings as levels

        if item.isTimer then
            dz.openURL({
                url = 'http://ampli-salon/YamahaExtendedControl/v1/main/getStatus',
                callback = scriptVar,
            })
        elseif item.isDevice then
            dz.openURL('http://192.168.200.67/YamahaExtendedControl/v1/main/setVolume?volume=' .. (math.floor( item.level * maxVolume / 100) ))
        elseif item.isHTTPResponse and item.json then
            dz.log('or another here ?', dz.LOG_DEBUG)                           
            volume.dimTo(math.floor(item.json.volume / maxVolume * 100)).silent()
            input.switchSelector(item.json.input).silent()
        else
            dz.log('There was a problem handling the request ', domoticz.LOG_ERROR)
            dz.log(item, dz.LOG_DEBUG)
        end

    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
albebert
Posts: 20
Joined: Friday 18 September 2020 17:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need help for understand dzVents

Post by albebert »

I try this tomorow.

Wife and Kids heure now, c'ant make test with the amp xD

edit : finaly take 2 minutes to test and seems to work.

amp don"t power off and volume control work.

need to test further tomorow :)

many thanks and send me your paypal adresse in PM wan't to offer you a beer :)

edit 2 : seems to power on , i think that i need to add condition (if .power = standby do nothing)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Need help for understand dzVents

Post by waaren »

albebert wrote: Monday 22 February 2021 19:02 many thanks and send me your paypal adres in PM wan't to offer you a beer :)
Very kind of you but not needed.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest