smartHomeHub / SmartIR

Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)
MIT License
2.06k stars 1.01k forks source link

missing code for 23 degrees. #175

Closed barns102 closed 5 years ago

barns102 commented 5 years ago

Home Assistant version 95.4 SmartIR version 1.5.0 SmartIR configuration


Add configuration here

Describe the bug The code for 23 degrees heat is missing for codes 1120 for Mitsubishi. How do I replace it? A clear and concise description of what the bug is.

Debug log


Add your logs here.

Additional context

Add any other context about the problem here.

smartHomeHub commented 5 years ago

Please learn the command and send it here. Thank you

barns102 commented 5 years ago

Can you just explain how I go about learning them. Also, in Home Assitant, I am able to change the fan speed, but I don't have this option in the HomeKit app, am I asking to much, or have I failed to config it correctly?

smartHomeHub commented 5 years ago

About the learn procedure: https://www.home-assistant.io/components/broadlink/#how-to-obtain-irrf-packets

I'm not using homekit and I don't know if it is supporting the fan speed selection

smartHomeHub commented 5 years ago

Did you learn the missing code?

barns102 commented 5 years ago

Hi.

No I didn’t in the end, I just copied the code for 24 degrees and pasted that. Because I don’t have a temperature sensor setup in Home Assistant, only in HomeKit, so It’s not as if the actual temperature in the room will affect the heatpump.

I absolutely love this component, I have been looking for ages as to how I can solve two keys problems with my HomeKit app, functionality for my heatpump and functionality with my TV.

So I also setup your SmartIR media player. Its friggin awesome, although there was no template for my tv (Panasonic Viera), I was able to find them for the older broadlink or media player, so I just adjusted the 1080 codes file. It works superbly. Although, my tv doesn’t have a specific button on the remote for specific inputs selection (e.g HDMI 1, HDMI 2 etc), so I just set both input selections to the Change Input Selection code and I just toggle it a few time to get to the desired input. I can’t control the volume yet, but someone from GitHub is helping and suggesting the I use universal media player wrapped around my SmartIR media player.

Anyway, long story short, I absolutely love the components you have created, they have totally change and improved my HomeKit experience. If I can now find a way to sort the fan speed for climate and control volume and input selection for media player, they will be perfect.

Thanks heaps. Barns.

On Thu, 18 Jul 2019 at 9:22 PM, Vassilis Panos notifications@github.com wrote:

Did you learn the missing code?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smartHomeHub/SmartIR/issues/175?email_source=notifications&email_token=AJV6UNZ3BFWLEQSSSCNMYYDQAAY6RA5CNFSM4IDSDB6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2H4BYI#issuecomment-512737505, or mute the thread https://github.com/notifications/unsubscribe-auth/AJV6UN7IEU2QJPVMJJJR7CTQAAY6RANCNFSM4IDSDB6A .

-- Regards.

barns102 commented 5 years ago

Here’s some screenshots.

Thanks again.

On Thu, 18 Jul 2019 at 9:22 PM, Vassilis Panos notifications@github.com wrote:

Did you learn the missing code?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smartHomeHub/SmartIR/issues/175?email_source=notifications&email_token=AJV6UNZ3BFWLEQSSSCNMYYDQAAY6RA5CNFSM4IDSDB6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2H4BYI#issuecomment-512737505, or mute the thread https://github.com/notifications/unsubscribe-auth/AJV6UN7IEU2QJPVMJJJR7CTQAAY6RANCNFSM4IDSDB6A .

-- Regards.

smartHomeHub commented 5 years ago

Alexa and Google Home do not support fan speeds as well. Could you send me the model of your TV and a photo of your remote?

barns102 commented 5 years ago

My model is the top one.

On Thu, 18 Jul 2019 at 9:47 PM, Vassilis Panos notifications@github.com wrote:

Alexa and Google Home do not support fan speeds as well. Could you send me the model of your TV and a photo of your remote?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smartHomeHub/SmartIR/issues/175?email_source=notifications&email_token=AJV6UNYK37DZQQ4VUSYNWW3QAA3ZJA5CNFSM4IDSDB6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2H6EOQ#issuecomment-512746042, or mute the thread https://github.com/notifications/unsubscribe-auth/AJV6UN5M3PYWGJVNNXOC6KLQAA3ZJANCNFSM4IDSDB6A .

-- Regards.

barns102 commented 5 years ago

On Thu, 18 Jul 2019 at 9:47 PM, Vassilis Panos notifications@github.com wrote:

Alexa and Google Home do not support fan speeds as well. Could you send me the model of your TV and a photo of your remote?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smartHomeHub/SmartIR/issues/175?email_source=notifications&email_token=AJV6UNYK37DZQQ4VUSYNWW3QAA3ZJA5CNFSM4IDSDB6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2H6EOQ#issuecomment-512746042, or mute the thread https://github.com/notifications/unsubscribe-auth/AJV6UN5M3PYWGJVNNXOC6KLQAA3ZJANCNFSM4IDSDB6A .

-- Regards.

barns102 commented 5 years ago

Sorry if you got loads of emails with the same picture, it keeps bouncing back saying it too large to send.

Barns.

On Thu, 18 Jul 2019 at 9:47 PM, Vassilis Panos notifications@github.com wrote:

Alexa and Google Home do not support fan speeds as well. Could you send me the model of your TV and a photo of your remote?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smartHomeHub/SmartIR/issues/175?email_source=notifications&email_token=AJV6UNYK37DZQQ4VUSYNWW3QAA3ZJA5CNFSM4IDSDB6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2H6EOQ#issuecomment-512746042, or mute the thread https://github.com/notifications/unsubscribe-auth/AJV6UN5M3PYWGJVNNXOC6KLQAA3ZJANCNFSM4IDSDB6A .

-- Regards.

smartHomeHub commented 5 years ago

Which top one? Please try to post on GitHub and not reply by mail

barns102 commented 5 years ago

My TV model number is TH-50DX740U (Panasonic Viera - 2016)

this is the picture of my remote

IMG_1544 Thanks

barns102 commented 5 years ago

far out why can't I send the image!!!!

Screen Shot 2019-07-18 at 11 25 54 PM
barns102 commented 5 years ago

finally

smartHomeHub commented 5 years ago

Could you test if your tv is turning on and off with this code file? 0.zip

barns102 commented 5 years ago

so in order to test that, I would need to add that file to custom components - codes folder and then change my config.yaml smartIR config to read from codes 0 right?

smartHomeHub commented 5 years ago

right

barns102 commented 5 years ago

So using home assistant it only turns the tv off. Using HomeKit it turns it on and off, but its not reporting the true state of the tv, so think its just sending one code. Does this make sense. Before in both it would turn on and off and if I turned it off in Home assistant, it would go off in home too.

barns102 commented 5 years ago

Is it ok to change it back?

barns102 commented 5 years ago

These are the codes that I found, that have worked for my TV:

[general] turn_off = JgDMAHI4Dw4PKw4ODw4ODg8ODw8NEA0PDhAMDw8NEA0OKxAODg4PDg0PDw8NEA0OEA0PDg8sDA8ODw8NDw8PDQ4QDQ8ODw0rDisPKw4rDisOKw8ODw4PKw0rDysOKw8rDykQDQ4sDgAJlHM5Dg0PKw4QDg0PDg8NDw4PEAwQDg4ODg8OEA4OKg8ODg4PDg8ODw4PDg0PDg8ODw4rDg8ODw4NEQwPDw4PDQ8ODw4rDysOKg8rDyoQKQ4ODw4QKg4rDysNKw8rDyoPDQ8rDgANBQAAAAAAAAAAAAAAAA== turn_on = JgDMAHI4EQ4OKg8PDQ8ODw4PDRAMEQ0ODg8ODg8ODw4QKw0NDw4RDA8ODw8NDw4PDQ4PDw4rDg8ODw0PDw4QDA8ODw4ODw4PDioQKg4rDisPLA0ODw8NEA0rDiwOKw0sDyoODw8qDgAJlnM2Dw8PKQ8ODg4PDg8ODw8NDw4PDw4ODQ8OEQwPKw4ODw4ODhANDw4PDg4PDg4QDQ8rDg4ODw8ODg4QDQ4PDg8NEA0OECoPKhArDCsQKg8ODg8PDQ4rDywNKw8qECoNEA4qEAANBQAAAAAAAAAAAAAAAA== previous_channel = JgDMAHI5Dg4PKg8ODg8ODg4ODw4ODg8ODg4PDg4ODw4OKw4ODw4ODw4ODg8ODg4PDg4ODw4rDg4ODw4ODg8ODg4PDg4ODw4rDg4OKw4PDisOKw4ODg8OKw4ODisODw4rDisODg4rDgAJh3I6Dg4OKw4PDg4ODw4ODg8ODg4PDg4ODw4ODg8OKw4ODg8ODg4PDg4OD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EA0PDw8NEAwQDg4nEg0QDg8NEA0PDg4QDg0PDRAqDw4PDg8NEA4ODRENDw0PKhANDw4PDhAMDw4PDw4qEAAJk3M4Dw0QKg8NDw4PDQ8ODw4PDw4NEA0QDg4NEA0PKhEMEQ0ODw0QDQ8ODRANEA0RDQ4qDw0RDBAODw0PDw4OEA0ODg8qEA4PDQ8NEQwQDg8MEA4OKw8NEA0PDg8PDQ8PDRApDwANBQAAAAAAAAAAAAAAAA== DTV = JgDMAHQ4Dg4PKw8NDg4PDw4NEQ0PDRANEA0PDREMDw0RKQ8ODw8PDBAODw0PDRAPDg4PDg4qDw0RKRAMEQwQDQ8PDg4PDhALEQ0PDg8NECkPKw4ODw4PDg8qDw4QDQ4qFCYPDw8pDwAJlXI5Dg0PKhAOEAsRDQ4PDg8ODg8NEA0QDBINDg0PKhAODw0QDRILDg4PDhANDw0RDA8qEQsQLA0OEA4PDBANEAwSDA8ODg8PDQ8NECoOKhENEAwQDQ8qEA0RCxAqDyoQDg4qDwANBQAAAAAAAAAAAAAAAA== PC = JgDMAHI4EQwOKw8PDwwQDQ8ODw4PDg4OEQsQDRAPDA8PKhAODQ8ODg4PDg8RCxANEA0QDQ4qEA0QDRANEQwQDRAMDg4RDBEMECoPDg4sDSsRKA8qDw4RDA4sDg4PKw0sDisNLBApDwAJlXI4Dg8PKg8NEA4NDw4ODw8ODg8NDw4PDw8ODQ4PKhANDw8ODw4OEAwPDQ8PDw0QDg4qDw4QDQ4ODw4QDRANDw0PDw8NDyoQDg4qDyoPKg8qEA4PDRAqDw0PKw8pECsOKg8rDgANBQAAAAAAAAAAAAAAAA==

barns102 commented 5 years ago

Actually, now that I've turned it back, I notice that its the same, works on and off in HomeKit but not in Home Assistant, , just off. In HomeKit, when I turn it off, it reports that its off, but in Home Assistant, it just reports as on all the time.

Does this make and sense to you?

smartHomeHub commented 5 years ago

Could you post the config of your media_player?

barns102 commented 5 years ago

This is the codes section Screen Shot 2019-07-19 at 12 04 27 AM

barns102 commented 5 years ago

This it the customise section Screen Shot 2019-07-19 at 12 04 56 AM

barns102 commented 5 years ago

This is the config section Screen Shot 2019-07-19 at 12 05 24 AM

smartHomeHub commented 5 years ago

I think your problem is that the HA UI is waiting for the state of device_tracker. If you comment the power sensor the on/off will work from the UI

smartHomeHub commented 5 years ago

I'll send you now a new file witch includes the volume codes. Do you want to test it?

barns102 commented 5 years ago

Ok, will take that out, thanks.

Do you have any suggestion for how I might control the volume and inputs from HomeKit?

smartHomeHub commented 5 years ago

Oh. Can you control the volume from HA?

barns102 commented 5 years ago

Yep

smartHomeHub commented 5 years ago

I thought that was a bad code problem. Again, I think homekit does not support the control of volume .

barns102 commented 5 years ago

You were right, taking out the device tracker and HA UI is now the same as HomeKit. I can still control the volume in HA but not HomeKit

barns102 commented 5 years ago

Hey, one last question, I'm about to update my HA 0.96, which will affect my SmartIR config, what do I do to keep it working?

smartHomeHub commented 5 years ago

No changes to the config. Just update the component

barns102 commented 5 years ago

how do I do that?

barns102 commented 5 years ago

Screen Shot 2019-07-19 at 12 19 37 AM I have the the update_branch: rc

barns102 commented 5 years ago

do I have to replace the rc with master? and then change it back once its updated?

smartHomeHub commented 5 years ago

First, update your HA instance. When HA starts the climate and media player will fail to load. Call the service smartir.update_component and restart HA when you receive a message tells you that the smartir was updated

smartHomeHub commented 5 years ago

rc and master is now in sync. No need for change

barns102 commented 5 years ago

Vassilis, you are the coolest guy around (sorry, I'm assuming you're a guy). You have gone above and beyond for me, thank you so much for your help and support.

Barns

barns102 commented 5 years ago

Sorry, I miss this, could you send that file.

Thanks.

On Fri, 19 Jul 2019 at 12:10 AM, Vassilis Panos notifications@github.com wrote:

I'll send you now a new file witch includes the volume codes. Do you want to test it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/smartHomeHub/SmartIR/issues/175?email_source=notifications&email_token=AJV6UN5CF6FXPOQWSALQVYLQABMUFA5CNFSM4IDSDB6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2IIUUI#issuecomment-512789073, or mute the thread https://github.com/notifications/unsubscribe-auth/AJV6UN5FBIWSOAU5SA23FMTQABMUFANCNFSM4IDSDB6A .

-- Regards.